text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
The *sk\_buff* has two places where it can store the next fragmentation data:
```
skb_shinfo(head)->frag_list
skb_shinfo(head)->frags[]
```
What are the differences between these two ways to handle fragmentation?
Both are used for different cases.
**frags[]**
When your device supports scatter-gather I/O, and you ... | [
0.00787446554750204,
0.2460930496454239,
0.2721943259239197,
0.17864662408828735,
-0.3033739924430847,
-0.3250318765640259,
0.05328398197889328,
-0.11887209117412567,
-0.4148910343647003,
-0.5732614398002625,
-0.16693082451820374,
0.17490310966968536,
-0.01638343557715416,
0.22317713499069... | |
will be filled during `ip_push_pending_frames`.
Say your `sk_buffs` are in this arrangement,
```
sk_buff0->next = sk_buff1
sk_buff1->next = sk_buff2
...
sk_buffn-1->next = sk_buffn
```
After `ip_push_pending_frames` is called
```
sk_buff0->frag_list = sk_buff1
sk_buff1->next = sk_buff2
...
sk_buffn-1->next = sk_bu... | [
-0.01685495115816593,
0.08729688823223114,
0.7221587896347046,
0.18571093678474426,
-0.08530474454164505,
0.0038666648324579,
-0.04969833418726921,
-0.31664514541625977,
-0.5675050616264343,
-0.3327862620353699,
-0.5480210781097412,
0.3386324346065521,
-0.008380883373320103,
0.066407792270... | |
This often happens to me:
I'm working on a couple related changes at the same time over the course of a day or two, and when it's time to commit, I end up forgetting what changed in a specific file. (This is just a personal git repo, so I'm ok with having more than one update in a commit.)
Is there any way to previ... | [
0.55021071434021,
-0.05843687057495117,
0.4130100905895233,
0.046951740980148315,
0.2902277708053589,
0.09815357625484467,
0.10031336545944214,
0.278480589389801,
-0.6257014870643616,
-0.823853075504303,
0.0826590359210968,
0.3221808671951294,
-0.1372181922197342,
0.07958928495645523,
0.... | |
var = 2+2
(current): var = myfunction() + 2
line 149
(last commit): return var
(current): return var / 7
```
This way, I could quickly see what I had done in that file since it was last checked in.
If you want to see what you haven't `git add`ed yet:
```
git diff myfile.txt
```
or if you want to see... | [
0.11367902904748917,
0.05412448197603226,
0.7222158908843994,
-0.5043052434921265,
0.24704009294509888,
0.17700417339801788,
0.2851864695549011,
-0.24443639814853668,
-0.3219890594482422,
-0.6214410662651062,
-0.11121942102909088,
0.7596572637557983,
-0.14470040798187256,
0.228380307555198... | |
I'm learning the quicksort algorithm, but for some reason, the output of this python implementation is just partially sorted, and I get the 'maximum recursion depth reached' for larger inputs. I've been banging my head against this for the last couple of days and I know it's probably something really stupid, but I can'... | [
-0.08130959421396255,
-0.1294720619916916,
-0.03238152340054512,
-0.4323447346687317,
0.09563213586807251,
0.23739907145500183,
0.09107225388288498,
-0.21898393332958221,
-0.23811890184879303,
-0.5642622113227844,
-0.15815436840057373,
0.5875973105430603,
-0.3604677617549896,
-0.2260728925... | |
right + 1 because of range()
if A[j] < p:
A[j], A[i] = A[i], A[j] #swap
i = i + 1
A[left], A[i - 1] = A[i-1], A[left] #swap
return i - 1
def QuickSort(list,left, right):
if len(list) == 1: return
if left < right: | [
-0.3167918026447296,
-0.6265766620635986,
0.1875116527080536,
-0.46605873107910156,
-0.10161188989877701,
0.2017761766910553,
0.07973913103342056,
-0.4912642240524292,
-0.20490503311157227,
-0.05054298788309097,
-0.39948949217796326,
0.6950572729110718,
-0.3290071487426758,
-0.417949229478... | |
pivot = Partition(list,left,right)
QuickSort(list,left, pivot - 1)
QuickSort(list,pivot + 1, right)
return list[:pivot] + [list[pivot]] + list[pivot+1:]
sample_array = [39,2,41,95,44,8,7,6,9,10,34,56,75,100]
print "Unsorted list: "
print sample_array
sample_array = QuickSort(sam... | [
-0.37058520317077637,
-0.16572774946689606,
0.3804072141647339,
-0.2791253626346588,
-0.019220126792788506,
0.5703778266906738,
-0.09609869867563248,
-0.4742584824562073,
-0.44739121198654175,
-0.2071107178926468,
0.026514580473303795,
0.19751358032226562,
-0.37295275926589966,
-0.27545961... | |
always taking the head of the original list, and not the head of the modified list.
Assume at some point you reduced the range to left=5,right=10 - you chose list[0] as the pivot - that can't be good.
As a result, in each iteration where `left>0` you ignore the first element in the list, and "miss" it - which can exp... | [
-0.44176268577575684,
-0.39980173110961914,
0.15321005880832672,
-0.1993783563375473,
-0.10963208228349686,
0.12879997491836548,
0.07877636700868607,
-0.1371244341135025,
-0.4472545087337494,
-0.44540727138519287,
-0.11987174302339554,
0.27252379059791565,
-0.4765395522117615,
-0.020420040... | |
I usually use NSNotification like the sample below:
In viewDidLoad:
```
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(foo:) name:kName1 object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bar:) name:kName2 object:nil];
```
In viewDidUnload and dealloc:
... | [
0.03757863864302635,
0.1442287415266037,
0.22206568717956543,
-0.23039866983890533,
-0.3512997329235077,
0.03668922185897827,
0.35385429859161377,
-0.18475747108459473,
-0.35145363211631775,
-0.7849856615066528,
-0.09066715836524963,
0.45490220189094543,
-0.46762678027153015,
0.12546357512... | |
instance will be unload or dealloc, the super class's notification is also useless. And is there any system UIViewController subclass use notification?
Your friend is 100% correct. Though, it does not matter if you remove all notification observations in dealloc.
You mentioned `viewDidUnload`, and there the case is ... | [
-0.341528981924057,
0.09220307320356369,
0.43914341926574707,
0.12106694281101227,
-0.2707623541355133,
-0.13552601635456085,
0.47345685958862305,
0.07038011401891708,
-0.49168092012405396,
-0.7641121745109558,
0.054359663277864456,
0.6528869271278381,
-0.39831748604774475,
0.1275165677070... | |
observations with specific names is good practice and should be done from the beginning. | [
0.4952283501625061,
0.32884806394577026,
-0.23842112720012665,
-0.1488887518644333,
0.27723202109336853,
-0.012264769524335861,
0.5408931970596313,
0.05387077108025551,
-0.2208261787891388,
-0.6982126832008362,
-0.05969497933983803,
0.12061653286218643,
-0.10969655215740204,
0.199559837579... | |
I'm trying to print the result of an API call individually.
I'm making an call to YQL API call.
Here is the PHP script that I m using
```
<?php
if (!$_REQUEST["q"]) return;
$query = $_REQUEST["q"];
$q = "'http://google.com/complete/search?output=toolbar&q=$query'";
$query = "select * from xml where url=... | [
0.10473459959030151,
0.15865729749202728,
0.5479040145874023,
-0.1695965975522995,
-0.16257435083389282,
0.2881578803062439,
0.28411751985549927,
-0.3630330562591553,
0.046475086361169815,
-0.5926854014396667,
-0.46427786350250244,
0.3743983805179596,
-0.41458532214164734,
0.00845312885940... | |
result set.
$info = json_decode($data);
foreach( $info['suggestion']['data'] as $i ) {
echo $i;
}
?>
```
And the result I get from the API call is
```
cbfunc({
"query": {
"count": 1,
"created": "2012-04-06T06:13:57Z",
"lang": "en-US",
"diagnostics": {
"publiclyCallable": "true",
"url": {
"execution-start-time... | [
0.1432887613773346,
0.2962626516819,
0.6442015171051025,
0.1538865566253662,
0.3454764783382416,
-0.0163657758384943,
-0.08818023651838303,
-0.6498495936393738,
-0.05707462131977081,
-0.44576209783554077,
-0.4164644181728363,
0.513224720954895,
-0.25090491771698,
0.08783404529094696,
0.0... | |
"num_queries": {
"int": "54800000"
}
},
{
"suggestion": {
"data": "fbi jobs"
},
"num_queries": {
"int": "119000000"
}
},
{
"suggestion": {
"data": "fb covers"
},
"num_queries": {
"int": "82100000"
}
},
{
"suggestion": {
"data": "fb banners"
},
"num_queries": {
"int": "... | [
0.08517203480005264,
0.09205000847578049,
0.1852237582206726,
0.11851831525564194,
0.005978881381452084,
0.25816789269447327,
-0.06748422980308533,
-0.12971797585487366,
-0.0059145730920135975,
-0.791800856590271,
-0.33405551314353943,
0.1686525195837021,
-0.1374514400959015,
0.11015008389... | |
"fbisd"
},
"num_queries": {
"int": "84300"
}
},
{
"suggestion": {
"data": "fbanners"
},
"num_queries": {
"int": "789000"
}
},
{
"suggestion": {
"data": "fbo"
},
"num_queries": {
"int": "13000000"
}
}
]
}
}
}
});
```
I'm trying to iterate over the suggestions Object and I'm... | [
-0.053700752556324005,
0.11823368072509766,
0.3393385112285614,
-0.18736769258975983,
0.05977441370487213,
0.07822474837303162,
0.439268559217453,
-0.7487638592720032,
-0.010883074253797531,
-0.2598607838153839,
-0.30451735854148865,
0.543608546257019,
-0.5085604786872864,
-0.0214428231120... | |
$i['suggestion']['data'];
echo "<br>";
}
``` | [
0.13645939528942108,
0.2176768034696579,
0.08080167323350906,
-0.4474848806858063,
0.015865813940763474,
-0.17643976211547852,
0.2569161057472229,
-0.2439926564693451,
0.09908829629421234,
-0.29541248083114624,
-0.3797738552093506,
0.632762610912323,
-0.4105598032474518,
0.2443636804819107... | |
Is there a way to check, within a `before_destroy` hook, what object (class) called `destroy`?
In the following example, when a `patient` is destroyed, so are their `appointments` (which is what I want); however I don't want to allow a `physician` to be destroyed if there are any `appointments` associated with that `p... | [
0.3360373377799988,
0.05939929559826851,
0.14351162314414978,
0.059989091008901596,
0.41841116547584534,
-0.26075905561447144,
0.13271646201610565,
-0.29295146465301514,
-0.05042346194386482,
-0.6463265419006348,
0.03508207947015762,
0.6670991778373718,
-0.42957666516304016,
0.459466218948... | |
through: :appointments
end
class Patient < ActiveRecord::Base
has_many :appointments, dependent: :destroy
has_many :physicians, through: :appointments
end
class Appointment < ActiveRecord::Base
belongs_to :patient
belongs_to :physician
before_destroy :ensure_not_referenced_by_anything_important
private
... | [
0.11921859532594681,
0.08407773077487946,
0.6940453052520752,
-0.03734184056520462,
0.40188536047935486,
-0.34563007950782776,
0.28816238045692444,
-0.4408419132232666,
-0.21015459299087524,
-0.7717928886413574,
-0.09995362162590027,
0.5025769472122192,
-0.31491222977638245,
0.475887537002... | |
and [the association basics guide](http://guides.rubyonrails.org/association_basics.html#dependent). | [
0.49629274010658264,
-0.17593829333782196,
0.09998738765716553,
0.019949674606323242,
-0.2342236340045929,
-0.24282306432724,
0.507666826248169,
-0.4570302367210388,
-0.23793117702007294,
0.0009638408082537353,
0.0008269624086096883,
0.7222003936767578,
-0.3034692406654358,
-0.048363719135... | |
I have 2 sections, each section contains of 2 Points and each point has X and Y.
What is the best way to find the overlap between these 2 sections? (only on the X relevant here)
```
public class section
{
double leftPoint;
double rightPoint;
}
```
Here is example code to show you how to do it. I assume the two ... | [
0.3329438865184784,
0.04362901300191879,
0.57517009973526,
-0.14191888272762299,
-0.00731309549883008,
0.05882377550005913,
0.19058287143707275,
-0.4017259478569031,
-0.12193964421749115,
-0.6153293251991272,
-0.14729714393615723,
0.13674144446849823,
-0.09355495870113373,
0.50524437427520... | |
the later of the two beginnings and ends at the earlier of the two ends.
```
Point a_from, a_to;
Point b_from, b_to;
Point res_from = new Point();
Point res_to = new Point();
res_from.SetX(Math.max(a_from.getX(), b_from.getX()));
res_to.SetX(Math.min(a_to.getX(), b_to.getX()));
```
Note that if res\_to.x < res\_fr... | [
-0.26407280564308167,
-0.0050397939048707485,
0.7512559294700623,
-0.31302541494369507,
0.15142753720283508,
0.13671253621578217,
0.3845858871936798,
-0.4631568491458893,
-0.25094398856163025,
-0.8234550356864929,
-0.3854656219482422,
0.571595311164856,
-0.1597667634487152,
0.1720129549503... | |
In my application I have an existing SQLite database attached. On start it's copied to phone and then being used. I know how to check if this database is already copied, but I want to check if database on the phone is the same as stored in APK. Is there any way to compare them? I want to do that programmatically.
Orig... | [
0.42037180066108704,
0.2803361415863037,
0.5235191583633423,
0.11997038125991821,
0.31795716285705566,
-0.024961085990071297,
0.033046893775463104,
-0.06654634326696396,
-0.05791521444916725,
-0.8334484100341797,
0.21130558848381042,
0.5846704840660095,
-0.1877000629901886,
0.1206656694412... | |
How can I put an element coming from a `UITextField` into an `NSMutableArray`?
```
//Array should be of mutable type NSMutableArray *yourArray=[NSMutableArray alloc]init];
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
[yourArray addObject:[textfield text]];
NSLog([yourArray description],nil);
}
``` | [
-0.13042284548282623,
-0.0013657958479598165,
0.43857261538505554,
-0.09800442308187485,
-0.009948925115168095,
-0.08905146270990372,
0.34000164270401,
-0.4131925702095032,
-0.15576140582561493,
-0.48820561170578003,
-0.2974315881729126,
0.5815961956977844,
-0.22520983219146729,
0.08483125... | |
Gwt CellTable can show only objects. But I need to generate columns dynamically (so I can't predefine all fields in my class that require CellTable); and make some rows as "headers" Like this:

Or may be you can advice me some other solution. (Table... | [
0.12199072539806366,
0.061761435121297836,
0.5748292803764343,
-0.26668432354927063,
-0.29553061723709106,
-0.0765216052532196,
0.06849591434001923,
-0.5858588218688965,
-0.2683899998664856,
-0.47005870938301086,
0.05940021947026253,
0.5227651000022888,
-0.5358900427818298,
-0.056596688926... | |
@Override
public String getValue(YOURDATAOBJECT object) {
return object.getYOURCOLUMDATA();
}
};
this.addColumn(nameColumn, YOURHEADERNAME);
```
So it is possible to add the columns as simply as that as at any point of your code, as long as the data is in your DataProvider you defined for you CellTabl... | [
-0.002952051814645529,
-0.10336675494909286,
0.664251446723938,
-0.059339821338653564,
0.145937979221344,
-0.2709599733352661,
0.2869092524051666,
-0.2512734532356262,
-0.07490300387144089,
-0.5574581027030945,
-0.18019980192184448,
0.6726247072219849,
-0.5278506875038147,
-0.2551251053810... | |
a look at the official Google ShowCase for CellTable
* [CellTable](http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable)
* [Data Grid](http://gwt.google.com/samples/Showcase/Showcase.html#!CwDataGrid)
* [Cell Sample](http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSamplerData) | [
0.5430705547332764,
-0.36831459403038025,
-0.047215722501277924,
0.17321592569351196,
-0.19883792102336884,
-0.03205803781747818,
-0.01938360184431076,
-0.2736014127731323,
-0.000360357400495559,
-0.20306600630283356,
-0.021221458911895752,
0.1729486882686615,
0.009258586913347244,
0.09504... | |
In my RSS News Reader app,I am currently listing RSS titles in a List view using the following method.I have stored RSS data in array using this method, <http://droidapp.co.uk/?p=166> .I want to list RSS feed images along with its title.I fetched image URL from RSS feed.Can anyone help finding a solution?
```
ListVie... | [
0.3131781816482544,
0.012668752111494541,
0.8213109970092773,
-0.15206393599510193,
-0.42244771122932434,
0.011102479882538319,
0.168015718460083,
-0.03659677878022194,
-0.4536544978618622,
-0.6232190728187561,
-0.1671786904335022,
0.6615426540374756,
-0.40518319606781006,
0.10063595324754... | |
I want to have a Backbone model with float attributes in it but without worrying too much about variable types.
I would like to encapsulate the value parsing right there in the model so I am thinking of overriding the `set` function:
```
var Place = Backbone.Model.extend({
set: function(attributes, options) {
... | [
0.18198014795780182,
0.03608891740441322,
0.40343132615089417,
-0.0122112687677145,
0.330941766500473,
0.03409063071012497,
-0.007025315426290035,
-0.40625208616256714,
-0.27961134910583496,
-0.7591050863265991,
-0.0350431390106678,
0.265181303024292,
-0.07046189159154892,
0.22038094699382... | |
similar logic in the validate method and potentially repeated across multiple models. I don't think the View should take care of these conversions.
So what is the best way of doing it?
Use a validation plugin for your model so that you can validate the input in a generic fashion.
There are several out there includi... | [
0.35499700903892517,
0.008540969341993332,
0.1633583903312683,
0.2707008719444275,
-0.4019405245780945,
-0.005556970369070768,
0.2805179953575134,
-0.20480740070343018,
-0.38536739349365234,
-0.42732474207878113,
0.39719632267951965,
0.36374881863594055,
0.19942063093185425,
0.040526676923... | |
integer, such as Greenwich England: 0,0 or the north pole: 90,180. And since JavaScript only has "number" any valid input for parseFloat is also valid for parseInt.
But parseFloat will always return a float. | [
-0.1335548311471939,
0.23795188963413239,
0.383881539106369,
-0.1201656237244606,
-0.06934218853712082,
0.4357468783855438,
0.06310143321752548,
-0.31448742747306824,
-0.311517596244812,
-0.2639220654964447,
-0.3272106647491455,
-0.18664440512657166,
-0.1701286882162094,
-0.014457164332270... | |
I have a folder containing about 5000 files with names like:
```
Invoice 10.1 (2012) (Digital) (4-Attachments).pdf
Carbon Copy - Invoice No 02 (2010) (2 Copies) (Filed).pdf
01.Reciept #04 (Scanned-Copy).doc
```
I want to rename these files by removing everything from the first bracket onwards, so they l... | [
0.3859975039958954,
0.5073512196540833,
0.20935377478599548,
0.013211446814239025,
-0.11675453931093216,
0.17329511046409607,
0.2483709305524826,
-0.08660488575696945,
-0.18534307181835175,
-0.6020573377609253,
-0.29044049978256226,
0.34540194272994995,
-0.06026928871870041,
0.243044480681... | |
to use Automator, but I'm guess this might too complex for it. Any ideas?
Use a validation plugin for your model so that you can validate the input in a generic fashion.
There are several out there including one that I have written:
* [Backbone.Validator](http://github.com/toddself/Backbone.Validator/)
* [Backbone.V... | [
0.3980415165424347,
-0.1504584401845932,
0.41199183464050293,
0.22679945826530457,
-0.0540609285235405,
0.29588380455970764,
0.33946752548217773,
-0.12144017219543457,
-0.4127195179462433,
-0.47061362862586975,
-0.005389783997088671,
-0.09220889955759048,
-0.16077636182308197,
-0.265449792... | |
valid input for parseFloat is also valid for parseInt.
But parseFloat will always return a float. | [
-0.19765806198120117,
0.3480522036552429,
0.2859662175178528,
-0.11974699050188065,
-0.09560320526361465,
0.03150682523846626,
0.05682287737727165,
-0.12105314433574677,
-0.019795816391706467,
-0.22746925055980682,
-0.39080148935317993,
0.3868478834629059,
-0.258155882358551,
-0.3393711745... | |
I'm looking to perform a conversion of the values in a Ruby hash from String to Integer.
I thought this would be fairly similar to the way you perform a conversion in a Ruby array (using the map method), but I have not been able to find an elegant solution that doesn't involve converting the hash to an array, flatten... | [
-0.18841372430324554,
0.15313421189785004,
0.16830579936504364,
-0.2491915076971054,
-0.2508835792541504,
0.1129118874669075,
0.28611892461776733,
-0.3148125112056732,
-0.1374305784702301,
-0.8241226077079773,
-0.06837457418441772,
0.5845000743865967,
-0.35763922333717346,
0.01444183941930... | |
#=> {"a"=>1, "b"=>2, "c"=>3}
```
A somewhat wasteful one (has to iterate over the values twice):
```
Hash[x.keys.zip(x.values.map(&:to_i))] #=> {"a"=>1, "b"=>2, "c"=>3}
``` | [
-0.09388657659292221,
0.19788166880607605,
0.1860629916191101,
-0.24628880620002747,
0.23214426636695862,
0.08078983426094055,
0.4018399119377136,
-0.6893305778503418,
-0.3159538209438324,
-0.5102308392524719,
-0.25307339429855347,
0.5520986914634705,
-0.18280640244483948,
-0.1376740038394... | |
Very simple questions guys, but maybe I'm just forgetting something.
In 64bit linux, a long is 8bytes correct?
If that's the case, and I want to set the 64th bit, I can do the following:
```
unsigned long num = 1<<63;
```
Whenever I compile this, however, it gives me an error saying that I'm left shifting by more th... | [
0.13041822612285614,
0.03650539368391037,
0.17527815699577332,
-0.046209271997213364,
0.12651023268699646,
0.11362730711698532,
0.07125594466924667,
0.09678981453180313,
-0.37008997797966003,
-0.3428289592266083,
0.02317715436220169,
0.650529682636261,
-0.12070412933826447,
-0.052454013377... | |
Check this for a nice discussion.
[What decides the sizeof an integer?](https://stackoverflow.com/questions/9689049/what-decides-the-sizeof-an-integer)
> Whenever I compile this, however, it gives me an error saying that I'm
> left shifting by more than the width
Everyone have already answered this. Use `1UL`
> Als... | [
0.10137251019477844,
-0.21299567818641663,
0.3863767385482788,
-0.257076233625412,
0.003149880561977625,
0.1969360113143921,
-0.05005195736885071,
-0.19205020368099213,
-0.4455375373363495,
-0.4874378442764282,
-0.03681278973817825,
0.465580552816391,
-0.13311874866485596,
-0.0867408215999... | |
used a `long` and not `unsigned long` then you cannot do away with the sign extended bits. For example, `-1` is represented as all ones, right from the 0th bit. How will you avoid these ones by masking?
`num = (int)(num)` will give you the lower 32-bits but compiler might through a Overflow Exception warning if `num` ... | [
0.29376211762428284,
-0.02106490358710289,
-0.01675640605390072,
-0.17400462925434113,
-0.03847016394138336,
-0.10015008598566055,
0.3389233946800232,
-0.2252064049243927,
-0.18490193784236908,
-0.1887008547782898,
-0.22811655700206757,
0.44744277000427246,
-0.11952660232782364,
-0.0322383... | |
I'm trying to add a custom header to `UITableView`, that has some buttons and an `UISearchBar`.
The problem is, that when I try to use searchBar I get a message:
`setting the first responder view of the table but we don't know its type (cell/header/footer)`
Has anyone encounter such problem?
> In 64bit linux, a long... | [
0.031370822340250015,
-0.14626997709274292,
0.55833500623703,
-0.21446360647678375,
-0.04927074536681175,
-0.00308942049741745,
0.0027480036951601505,
0.10260288417339325,
-0.5319565534591675,
-0.5746461153030396,
0.09724730998277664,
0.5655177235603333,
-0.06546828150749207,
0.21396532654... | |
already answered this. Use `1UL`
> Also, if I wanted to take the first 32bits of a **long** type (without
> sign extension), can I do:
```
num = num&0xFFFFFFFF;
or what about:
num = (int)(num);
```
`num = num&0xFFFFFFFF`. This will give you the lower 32-bits. But note that if `long` is just 4 bytes on your system... | [
0.2632559835910797,
-0.0017286378424614668,
0.350875586271286,
-0.1271442323923111,
0.033736005425453186,
0.19618627429008484,
0.06590668857097626,
-0.22554351389408112,
-0.2669619023799896,
-0.30403932929039,
-0.10757968574762344,
0.4743182957172394,
-0.1895332783460617,
0.034493710845708... | |
avoid these ones by masking?
`num = (int)(num)` will give you the lower 32-bits but compiler might through a Overflow Exception warning if `num` does not fit into an `int` | [
0.20434385538101196,
-0.013020606711506844,
-0.14494946599006653,
-0.05326506868004799,
0.023927899077534676,
-0.06373701244592667,
0.6015043258666992,
-0.22233174741268158,
-0.0995960459113121,
-0.13956886529922485,
-0.28581905364990234,
0.4783470332622528,
-0.2264431267976761,
-0.2991772... | |
I'm trying to implement a painting app with brush texture and blending, similar to that of an oil painting. I'm finding that even though Quartz 2D has been relatively simple to pick up, I've found it hard to implement the ideas of stroke texture/blending. Naively I tried hacking the shadow, and it looks "okay," but the... | [
0.6361363530158997,
-0.03025597147643566,
0.3777637779712677,
0.11236516386270523,
-0.24896790087223053,
0.04667329043149948,
0.19981643557548523,
0.07896582037210464,
0.18207582831382751,
-0.9851287603378296,
0.4404904246330261,
0.7024418711662292,
-0.14035338163375854,
0.0252185016870498... | |
like overkill and also is pretty intimidating. I've looked at GLPaint and I can't claim to understand some parts of it. Further working against me is that my knowledge of C is extremely limited and it really feels like if I understood C better I might understand OpenGL ES for iOS better as well.
Basically, I am wonder... | [
0.5256282687187195,
0.2343955785036087,
0.1635180413722992,
0.01355519238859415,
-0.21086053550243378,
-0.10276184976100922,
0.49953630566596985,
-0.099563367664814,
-0.16288873553276062,
-0.28258511424064636,
0.3139340579509735,
0.7991635203361511,
-0.21380434930324554,
0.1772388666868209... | |
mortals like myself?
Or, is there some other way of achieving stroke texture and blending that I am not aware of in Quartz?
iOS 5's GLKit will wrap a lot of OpenGL functionality for you, but it's going to be difficult to find an "oil painting library" because it is quite specific. If you want to work with graphics, so... | [
0.7961545586585999,
0.1328907161951065,
0.3703267276287079,
0.45825934410095215,
-0.18114705383777618,
0.05551721900701523,
0.10616530478000641,
0.03129296749830246,
-0.07840277254581451,
-0.5796443819999695,
0.22748468816280365,
0.9817201495170593,
-0.035821639001369476,
-0.03088794089853... | |
Perhaps you can find the function that is taking the most time and ask another question about how to improve its efficiency.
To answer the main question though, "yes". | [
0.2391287237405777,
-0.14803484082221985,
0.1660292148590088,
0.32111141085624695,
-0.10972731560468674,
0.0723777785897255,
-0.04215967282652855,
0.07751309871673584,
0.18255989253520966,
-0.6887035369873047,
0.18833628296852112,
0.5608376860618591,
0.13302195072174072,
0.1600986421108245... | |
As is evident when the document gets loaded in the client browser,
```
$(function(){
some code here
});
```
takes over.
Say I have two JavaScript files `main.js` and `style.js`
*main.js* is for the functionality and *style.js* for some hypothetical styling when the page loads. I want both the files. I include them... | [
0.28855347633361816,
0.12899163365364075,
0.5874627232551575,
-0.16660678386688232,
-0.03430737927556038,
-0.05818003788590431,
0.02933480776846409,
-0.29853498935699463,
-0.2375590205192566,
-0.7915001511573792,
-0.23635093867778778,
0.7019158005714417,
-0.27120453119277954,
-0.0691570490... | |
*main.js* takes over??
Well you can have multiple `document.ready` but that affects the readability of the code. More has been explained [here](http://www.learningjquery.com/2006/09/multiple-document-ready) | [
0.29851770401000977,
-0.22639264166355133,
0.05924080312252045,
0.2679167687892914,
0.0036139129661023617,
-0.20056098699569702,
0.2648055851459503,
0.13680580258369446,
-0.4813365638256073,
-0.5035915970802307,
-0.32259228825569153,
0.4682576060295105,
-0.04433726519346237,
0.100653193891... | |
I've just updated my android adt to version 17 and now i cant start my android projects. When I try to update it gives me an error:
> This Android SDK requires Android Developer Toolkit version 17.0.0 or above. Current version is 16.0.1.v201112150204-238534. Please update ADT to the latest version.
I've tried to upda... | [
0.27485939860343933,
0.3816765546798706,
0.8162333965301514,
-0.2206137329339981,
-0.13055945932865143,
-0.13083046674728394,
0.5802063941955566,
-0.35593104362487793,
-0.016612665727734566,
-0.986806333065033,
-0.04273002967238426,
0.8020674586296082,
-0.3251722455024719,
0.29853504896163... | |
permitted.
Android Hierarchy Viewer will be ignored because it is already installed, and updates are not permitted.
Android Traceview will be ignored because it is already installed, and updates are not permitted.
```
Is there a way to fix this or can i downgrade adt to fix this problem
Get the Newest ADT by go... | [
0.3809165954589844,
-0.10431081056594849,
0.6078600287437439,
0.056489747017621994,
-0.05952960252761841,
-0.23749423027038574,
0.43492069840431213,
-0.16086332499980927,
-0.01498761773109436,
-0.6895648241043091,
-0.06036830320954323,
0.545725405216217,
-0.6653520464897156,
0.127001851797... | |
First example:
```
UriBuilder.fromUri("http://localhost")
.queryParam("foo", "test")
.clone()
.build()
// equals to: "http://localhost/?foo=test"
```
Second example:
```
UriBuilder.fromUri("http://localhost")
.replaceQueryParam("foo", "test")
.clone()
.build()
// equals to: "http://localhost/"
```
It ... | [
0.15648356080055237,
0.01898679882287979,
0.056732263416051865,
-0.3621866703033447,
0.101727694272995,
-0.18855465948581696,
0.13159531354904175,
-0.03124915063381195,
-0.18405033648014069,
-0.5413216948509216,
-0.2346704602241516,
0.33657753467559814,
-0.3638221025466919,
0.1818905174732... | |
I have a page that loads an external HTML page into an iFrame. There are two problems I am facing with this:
1. The iFrame is always a fixed height, but I want it to expand
vertically depending on the height of the content.
2. The content inside the iFrame can not inherit the CSS styles
attached to the HTML page that ... | [
0.5222373008728027,
0.31622880697250366,
0.25241532921791077,
-0.28922873735427856,
-0.17280040681362152,
-0.0032396921887993813,
-0.10375278443098068,
-0.013852751813828945,
-0.4036594331264496,
-0.7033438086509705,
0.10662835836410522,
-0.04082271829247475,
-0.3477713167667389,
0.1482793... | |
there a simple **Javascript** call that can load an external HTML file into a **DIV***?
Just to be clear, since it seems some people have misunderstood me:
I am asking **how to replace an iframe with a DIV and Javascript** in order to get the functionality I mention above. I am **not** looking for ways to make iFrame... | [
0.5242508053779602,
0.04251359775662422,
-0.004114150535315275,
0.05222313478589058,
-0.30527618527412415,
-0.19806800782680511,
0.20883440971374512,
0.15034916996955872,
-0.37467074394226074,
-0.6317837834358215,
0.0345507487654686,
0.5006923079490662,
-0.4949437379837036,
-0.034192003309... | |
I've missed something and this is a duplicate, I wouldn't be offended if this got closed.)*
You can make an ajax call to fetch your html page and add it to the div. For example using JQuery:
`$.get('yourPage.html', function(data) {
$('#yourDiv').html(data);
});`
Read more at: <http://api.jquery.com/jQuery.get/> | [
0.42607587575912476,
-0.18488797545433044,
0.4026980698108673,
0.15106220543384552,
-0.10984226316213608,
-0.2845935821533203,
0.4289151430130005,
0.3519541919231415,
-0.48360711336135864,
-0.7133998274803162,
-0.1600484699010849,
0.5371859073638916,
-0.13357354700565338,
0.159255325794219... | |
I try to extend the CheckfrontAPI class with my new class.
In my case I use the Singleton pattern in order to load only one instance at a time of my class and I get that error
Fatal error: Declaration of CheckFrontIntegrator::store() must be compatible with that of CheckfrontAPI::store() in /home/my\_web\_site/public... | [
-0.04036228731274605,
0.21638311445713043,
0.45982813835144043,
-0.2526476979255676,
0.0357208326458931,
0.19274134933948517,
0.327434241771698,
-0.49775296449661255,
-0.2318272888660431,
-0.828876256942749,
-0.3381911516189575,
0.6241891980171204,
-0.5247982740402222,
0.00610800925642252,... | |
= array())
{
$tmp_file = sys_get_temp_dir() . DIRECTORY_SEPARATOR. $this->tmp_file;
if(count($data))
{
file_put_contents(
$tmp_file,
json_encode( | [
0.36917272210121155,
-0.3665001094341278,
0.39653390645980835,
-0.6583859324455261,
0.10894451290369034,
0.0484769307076931,
0.2661592662334442,
-0.5622597932815552,
-0.19571323692798615,
-0.3691098690032959,
-0.5249760746955872,
0.5695813298225403,
-0.6290551424026489,
0.01434805337339639... | |
$data,
true
)
);
}
elseif(is_file($tmp_file))
{
$data = json_decode( | [
0.16091817617416382,
-0.15676243603229523,
0.2656669020652771,
-0.33302605152130127,
0.4844350516796112,
0.06026247888803482,
0.5419171452522278,
-0.43270859122276306,
-0.010409755632281303,
-0.2881753146648407,
-0.4978123605251312,
0.6105740666389465,
-0.5172574520111084,
0.05908458307385... | |
trim(
file_get_contents(
$tmp_file
)
),
true | [
0.4488336741924286,
-0.2755918502807617,
0.3006550967693329,
-0.05013670399785042,
0.3988540768623352,
-0.07462065666913986,
0.06837598234415054,
-0.2506552040576935,
0.09436015039682388,
-0.5656107068061829,
-0.35763978958129883,
0.8815127015113831,
-0.15115632116794586,
-0.11085669696331... | |
);
}
return $data;
}
public function session($session_id, $data = array())
{
$_SESSION['checkfront']['session_id'] = $session_id;
}
public static function instance($data)
{
if(!isset(self::$instance))
{
self::$instance = new CheckFrontIntegrator($da... | [
-0.2738834321498871,
-0.03995443135499954,
0.32135799527168274,
-0.319009006023407,
-0.04598460718989372,
0.20366151630878448,
0.40939560532569885,
-0.3197444677352905,
-0.26313328742980957,
-0.5301942825317383,
-0.5346160531044006,
0.7240477800369263,
-0.3816869556903839,
0.19469688832759... | |
}
return self::$instance;
}
public function __construct($data)
{
if(session_id() == '')
{
session_start();
}
parent::__construct($data, session_id());
}
}
?>
```
And I initiate the new instance of that class like that:
```
$this->checkfront_inte... | [
-0.1233910322189331,
0.09249431639909744,
0.39866217970848083,
-0.24627667665481567,
0.1030522808432579,
-0.030106300488114357,
0.2765358090400696,
-0.2985769808292389,
-0.14430148899555206,
-0.7087869644165039,
-0.302592933177948,
0.5681270956993103,
-0.23913849890232086,
0.28803083300590... | |
a new object
AFTER EDIT
I have change my method store from:
```
final protected function store($data = array())
....
```
to
```
protected function store($data)
....
```
and the problem still occure :(
CheckfrontAPI is an abstract class? in this case your CheckFrontIntegrator::store() arguments count must be ide... | [
-0.11192309111356735,
0.19220086932182312,
0.4906136095523834,
-0.26909568905830383,
0.002103174803778529,
-0.05663624033331871,
0.37668007612228394,
-0.3537842631340027,
-0.17487679421901703,
-0.607288658618927,
-0.3970703184604645,
0.7802309393882751,
-0.48739323019981384,
0.271100044250... | |
I am trying to save the output from webAudio API for future use , so far i think getting PCM data and saving it as a file will do my expectation , I am wondering if the webAudio or mozAudio already supports saving the output stream if not how can i get the pcm data from the output stream
There isn't a good sense of the... | [
0.890230655670166,
0.02798963524401188,
0.39735886454582214,
0.15458177030086517,
0.01271078921854496,
-0.4608355760574341,
-0.07570181787014008,
-0.14440396428108215,
-0.3452247679233551,
-0.5482605695724487,
0.1019098088145256,
1.0000947713851929,
0.04333167150616646,
0.09156547486782074... | |
that also isn't entirely clear.
As Incognito points out, [you can do this in Chrome by using a callback hanging off `decodeAudioData()`](https://stackoverflow.com/a/10067038/517815). But, this may be overly complicated for your uses if you're simply trying to capture, for example, the output of a single web stream and... | [
0.4482387602329254,
-0.05318451300263405,
0.3044758141040802,
0.20443187654018402,
0.03364526480436325,
-0.33678483963012695,
-0.07609722018241882,
-0.3944355547428131,
-0.2992649972438812,
-0.6657539010047913,
-0.08716161549091339,
0.6305431723594666,
-0.09025745838880539,
0.0469157323241... | |
sampling rate if (and only if) your sound card isn't able to sample the stream effectively.
As we know, [you're already encoding analog signals digitally anyway via your desire for PCM encoding](http://en.wikipedia.org/wiki/Pulse-code_modulation). Obviously, only do this if you have the legal right to use the files b... | [
0.33506813645362854,
-0.2530363202095032,
0.6168316006660461,
0.006299663335084915,
0.12657135725021362,
-0.05321507528424263,
-0.006346086505800486,
-0.7042852640151978,
-0.21569961309432983,
-0.36121368408203125,
0.04014328494668007,
0.7678391933441162,
0.01680270954966545,
-0.0226080194... | |
= require('fs');
function saveAudio(data, saveLocation) {
var context = new (window.AudioContext || window.webkitAudioContext)();
var source = context.createBufferSource();
if(context.decodeAudioData) {
context.decodeAudioData(data, function(buffer) {
fs.writeFile(saveLocation, buffer,... | [
-0.1574048101902008,
0.028869209811091423,
0.6629696488380432,
-0.5057430267333984,
0.6259562969207764,
0.06872625648975372,
0.47937440872192383,
-0.5240904688835144,
0.13772568106651306,
-0.5716779828071594,
-0.6515728235244751,
0.9322035312652588,
-0.15396393835544586,
0.2158513963222503... | |
});
}, function(e) {
console.log(e);
});
} else {
var buffer = context.createBuffer(data, false /*mixToMono*/);
fs.writeFile(saveLocation, buffer, function (err) {
if (err) throw err;
console.log('It\'s saved!');
}); | [
-0.05673229694366455,
-0.1900530457496643,
0.6790745258331299,
-0.6091110110282898,
0.6078833341598511,
0.17286406457424164,
0.4699949026107788,
-0.48198220133781433,
0.1603790521621704,
-0.47596850991249084,
-0.6149095892906189,
0.7159491181373596,
-0.23789092898368835,
0.0628856346011161... | |
}
}
```
(**Warning: untested code.** If this doesn't work, edits are welcome.)
This effectively spools out `decodeAudioData` from [the Web Audio API](https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html), decodes PCM from the supplied `data`, then attempts to save it to the target `saveLocation`. Si... | [
0.2685742676258087,
0.02782847359776497,
0.26423710584640503,
0.025292133912444115,
0.4613475501537323,
-0.4924258589744568,
0.0572030246257782,
-0.055520199239254,
-0.011479109525680542,
-0.3780876398086548,
-0.27697479724884033,
0.9349955916404724,
-0.23995208740234375,
0.211688145995140... | |
Yesterday while going through [this](https://stackoverflow.com/questions/10031665/using-macros-in-c-to-define-data-structures/) question, I found a curious case of passing and receiving unnamed structures as function parameters.
For example, if I have a structure like this,
```
int main ()
{
struct {
int ... | [
0.030101513490080833,
0.163934126496315,
-0.08285379409790039,
0.018273673951625824,
-0.27071383595466614,
-0.03206651657819748,
-0.12195919454097748,
-0.06734336912631989,
-0.3773946166038513,
-0.3839898705482483,
0.09153256565332413,
0.4287445545196533,
-0.4790302515029907,
0.36993721127... | |
perhaps declare it again inside that function and then assign the `void *` ?
### EDIT as requested
> *6.7.2.1 - 15*
>
>
> **A pointer to a structure object, suitably converted, points to its
> initial member** (or if that member is a bit-field, then to the unit in
> which it resides), and vice versa. There may be un... | [
0.06932700425386429,
-0.03142603859305382,
0.4672073423862457,
-0.20464883744716644,
-0.07271277159452438,
0.11249306052923203,
-0.035792894661426544,
-0.21924921870231628,
-0.09789243340492249,
-0.7835332751274109,
-0.26329684257507324,
0.19965985417366028,
-0.008800376206636429,
0.333643... | |
I have some queries made by GWT (2.4) `RequestBuilder` that might take a long time to execute. In these cases I'd like to allow the user cancelling the request. As it is only a query aborting the processing on the server side would not have any harmful side-effect. Even the wasted server side CPU cycles do not matter i... | [
0.23342543840408325,
-0.018900396302342415,
0.5918533802032471,
-0.19093802571296692,
0.07478227466344833,
-0.12565940618515015,
0.4800725281238556,
-0.21995191276073456,
-0.25403597950935364,
-0.4563874304294586,
-0.22193829715251923,
0.4683118462562561,
-0.4067095220088959,
0.41858029365... | |
have any idea how to do this?
`sendRequest()` method of `RequestBuilder` returns instance `Request` class, which has `cancel()` method,which allows you to cancel request.
E.g.
```
RequestBuilder requestBuilder = new RequestBuilder(
RequestBuilder.GET, FOOBAR_SERVICE_URL);
Request request = requestBuilder.sendReq... | [
-0.004417456686496735,
-0.24336238205432892,
0.5539222955703735,
-0.07169180363416672,
-0.011126953177154064,
0.05866384878754616,
0.31666892766952515,
-0.409054696559906,
-0.2914278507232666,
-0.564814567565918,
-0.2418186068534851,
0.46154123544692993,
-0.27171897888183594,
0.36891481280... | |
i have application that uses asp.net membership. Unfortunately users password are stored using PasswordFormat clear. I want to change password to hashed format without asking user to setting theirs again. Another restriction is that UserId in Membership table can't be changed. Does anyone have any idea how to do it ?
T... | [
0.14774830639362335,
-0.060240622609853745,
0.9622064232826233,
0.026582028716802597,
0.27652159333229065,
-0.2516770660877228,
0.4793529212474823,
-0.12914808094501495,
-0.3299991488456726,
-0.7953929901123047,
-0.11367633938789368,
0.591234564781189,
-0.2585648000240326,
0.21625423431396... | |
}
// repeat ad nauseam
blob.SetProperties();
}
```
Or set up a dictionary so you don't have to write a bunch of if statements. | [
0.30378788709640503,
0.21697981655597687,
0.07192949950695038,
-0.10722863674163818,
0.1288318932056427,
-0.08553110808134079,
0.3116278052330017,
0.22508375346660614,
0.163809671998024,
-0.575649082660675,
-0.14753995835781097,
0.7616264224052429,
-0.1516958773136139,
0.010933424346148968... | |
In Django admin I want to override and implement my own form for a model (e.g. Invoice model).
I want the invoice form to have auto-fill fields for customer name, product name and I also want to do custom validation (such as credit limit for a customer). How can I override the default form provided by Django admin and... | [
0.4824044406414032,
0.4743451476097107,
0.3805133104324341,
-0.11061959713697433,
-0.2821645438671112,
-0.3750951290130615,
0.04900515824556351,
-0.5017657279968262,
0.2731868028640747,
-0.36371350288391113,
0.13764026761054993,
0.7726706266403198,
-0.4368637502193451,
-0.1924894005060196,... | |
look at <https://docs.djangoproject.com/en/dev/ref/contrib/admin/#custom-template-options>
If you're looking specifically for autocomplete I can recommend <https://github.com/crucialfelix/django-ajax-selects> | [
0.4709045886993408,
-0.0427129790186882,
-0.18484468758106232,
0.08459264785051346,
-0.08379676192998886,
-0.28199175000190735,
-0.010535866022109985,
0.1555076539516449,
-0.26236623525619507,
-0.6835567355155945,
-0.007912171073257923,
0.8500099778175354,
-0.03541139140725136,
-0.50204050... | |
With a "classic" method implementation, I usually perform BeginInvoke like this:
```
private delegate void FooDelegate();
public void Foo()
{
if(InvokeRequired)
{
BeginInvoke(new FooDelegate(Foo));
return;
}
// Do what you want here
}
```
How to do the same thing when the method is an explicit inter... | [
0.33109769225120544,
0.024770021438598633,
0.2178633213043213,
-0.43283069133758545,
0.44022801518440247,
-0.0886654257774353,
0.26724469661712646,
-0.343872606754303,
-0.0020865402184426785,
-0.5428135991096497,
-0.4311966300010681,
0.6413004398345947,
-0.39629268646240234,
0.321080088615... | |
(IFace)this;
BeginInvoke(new FooDelegate(iface.Foo));
``` | [
0.39903512597084045,
0.09855993092060089,
0.4155157506465912,
-0.5894597172737122,
0.4764568507671356,
-0.004880084190517664,
0.2561560571193695,
0.029834680259227753,
0.0618022121489048,
-0.8456831574440002,
-0.29713010787963867,
0.44432052969932556,
-0.376108318567276,
0.5170698761940002... | |
> **Possible Duplicate:**
>
> [C++ beginner, execution window disappears quickly](https://stackoverflow.com/questions/9436108/c-beginner-execution-window-disappears-quickly)
I am beginner at C programming. But when I compile the programm, a problem occurs. The compiler create a .exe for the program, but when I open... | [
0.0015241049695760012,
0.3966449797153473,
0.23736506700515747,
-0.14195938408374786,
0.21498417854309082,
0.06910032778978348,
0.5561382174491882,
0.10636705160140991,
-0.46816205978393555,
-0.678026020526886,
-0.20629708468914032,
0.5177040696144104,
-0.39509841799736023,
0.1693499684333... | |
isn't an error. The program will terminate after finishing the code you programmed. If you want to input something try `scanf` for instance. | [
0.4896681308746338,
-0.26203638315200806,
0.047871820628643036,
-0.0050868564285337925,
0.15494178235530853,
-0.22301460802555084,
0.32781174778938293,
0.38442832231521606,
-0.19481194019317627,
-0.6145707964897156,
-0.2798353135585785,
0.6745610237121582,
-0.4678179621696472,
0.0984561666... | |
webview in android loads more than once while loading the url.
Below is the code.
```
public boolean shouldOverrideUrlLoading(WebView view, String url)
{
if (url.contains(".pdf")) {
String[] spliturl = url.split("http://someurl/");
String googleurl ... | [
0.44006961584091187,
-0.07497411966323853,
0.6574892997741699,
-0.31025949120521545,
-0.05494781211018562,
-0.09923560917377472,
0.17007873952388763,
-0.29621583223342896,
0.044460419565439224,
-0.6481741070747375,
-0.4551040232181549,
0.8167116641998291,
-0.4972139000892639,
0.03333035856... | |
System.out.println("Google Url"+googleurl);
System.out.println("spliturl"+spliturl[1]);
view.loadUrl(googleurl+spliturl[1]);
}
else | [
-0.1962844878435135,
-0.21311160922050476,
0.5701382160186768,
-0.22581279277801514,
-0.02220514975488186,
0.1739005148410797,
0.11047753691673279,
0.1301051527261734,
-0.2499171942472458,
-0.7134314775466919,
-0.5019208788871765,
0.40812644362449646,
-0.7744447588920593,
0.087958887219429... | |
view.loadUrl(url);
return true;
}
});
```
I am splitting the url as it contains more than one url to be passed on google document viewer for rendering the pdf document.
First time the url is correctly split and the url is concatenated to open in google docs but the webview execut... | [
0.20537440478801727,
-0.2543242573738098,
0.6171039342880249,
-0.08082638680934906,
-0.13821958005428314,
-0.19385360181331635,
0.10254784673452377,
-0.25331127643585205,
-0.22163470089435577,
-0.4896329939365387,
-0.3204019069671631,
0.6019672751426697,
-0.35616177320480347,
0.25924170017... | |
anybody let me know why is this executing again.
thanks.
You should always check if an array has a size more than the index requested:
```
if (url.contains(".pdf") && url.split("http://someurl/").size()>2){
// your code
}
```
Don't know why it gets called though - probably multiple redirections. | [
0.4269939064979553,
0.15004952251911163,
0.29962968826293945,
0.08098682016134262,
-0.14838741719722748,
-0.41960200667381287,
0.2985988259315491,
0.19723644852638245,
-0.5271958708763123,
-0.6863113045692444,
0.031082823872566223,
0.5412968397140503,
-0.22232834994792938,
0.08025225996971... | |
Xdebug is loaded, but not loaded as a zend extension. What does it mean? How to resolve this problem?
This error means that you used "extension=" to load Xdebug. That could be in your normal php.ini, or in a file called xdebug.ini that some distributions like to add. In any case, Xdebug needs to be loaded as a Zend ext... | [
0.4524747133255005,
0.03934741020202637,
0.18674889206886292,
-0.040446698665618896,
-0.23301361501216888,
-0.4281489849090576,
0.08943378925323486,
-0.05650859698653221,
0.015960998833179474,
-0.5081965923309326,
0.14113958179950714,
0.6233474016189575,
-0.7146551012992859,
0.131058648228... | |
you use <http://xdebug.org/wizard.php> to provide you with the correct lines. | [
0.7379391193389893,
-0.026629555970430374,
0.2811514735221863,
0.20015430450439453,
-0.08435162156820297,
0.10127605497837067,
0.4388427734375,
0.3382017910480499,
-0.11748522520065308,
-0.6403819918632507,
-0.12788304686546326,
0.033261533826589584,
-0.15006786584854126,
-0.24354210495948... | |
I have two tables: A and B.
*Table A*:
```
Id | Number
1 | 2
2 | 5
3 | 1
```
*Table B*:
```
Id | Name
2 | X
5 | Y
1 | Z
```
When I get information from the database, I populate a DataSet. However, I use JOIN on A.Number = B.Name. So resulting in:
**Result**:
```
Id | Number | Name
1 | 2 | X
2 |... | [
-0.14529788494110107,
0.09690196812152863,
0.47249412536621094,
0.07075817883014679,
-0.137909933924675,
0.09030403196811676,
-0.04479319974780083,
-0.024153655394911766,
-0.24487416446208954,
-0.7939896583557129,
0.1740354746580124,
0.31922444701194763,
-0.21734409034252167,
0.33069071173... | |
bothers me. I would want to change ***Result*.Name** value in the DataGridView, but I want *table A* to be updated with respective ***A*.Number** value for the ***B*.Name** value. *Table A* doesn't have **Name** column.
So I want to get things like this:
**Table A before**:
```
Id | Number
1 | 2
```
**Number** 2... | [
-0.06474261730909348,
0.3379072844982147,
0.709566593170166,
-0.15593741834163666,
0.045829467475414276,
-0.21753759682178497,
0.2485952526330948,
-0.20198117196559906,
-0.19001826643943787,
-0.8024126291275024,
-0.00252048228867352,
0.9714202880859375,
-0.17344170808792114,
0.043953854590... | |
for each of the four possible orientations. 0 and 2 are landscapes while 1 and 3 are portraits. As the `dumpsys` output is very large, the command might take a few seconds to complete.
**Update:** dgmltn's modification is likely much faster:
```
adb shell dumpsys input | grep 'SurfaceOrientation' | awk '{ print $2 }'... | [
0.3427197337150574,
-0.04297482594847679,
0.5078563690185547,
-0.17808932065963745,
0.1619257777929306,
0.05890272930264473,
0.2877655327320099,
-0.4268856346607208,
0.09467105567455292,
-0.8788898587226868,
-0.17912638187408447,
0.609109103679657,
-0.18778197467327118,
-0.180566668510437,... | |
In my new project, I need to base on a c written project.
And I know that I can use the NDK to do it, but here is a question: how to rewrite the standard `Makefile` into the `Android.mk`?
And further more, in Android, can I, neglecting the ndk, build the project directly using the jni to adapt the c project into the an... | [
0.4141192138195038,
0.24500030279159546,
0.40431705117225647,
-0.1506924033164978,
0.030521191656589508,
0.0911610871553421,
0.03985777869820595,
-0.2659717798233032,
-0.11324130743741989,
-0.4471941292285919,
0.024105563759803772,
0.4967159926891327,
-0.29767975211143494,
0.06100229546427... | |
1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distrib... | [
0.6453391313552856,
0.11775445193052292,
0.2090112268924713,
-0.06611040979623795,
0.198486790060997,
-0.4956248700618744,
0.2238866537809372,
-0.4842913746833801,
-0.1660252958536148,
-0.6483243107795715,
-0.390775203704834,
0.47572922706604004,
-0.5234529972076416,
-0.23320619761943817,
... | |
= $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i686-pc-linux-gnu
host_triplet = i686-pc-linux-gnu
target_triplet = i686-pc-linux-gnu
subdir = .
DIST_COMMON = README $(am__configure_deps... | [
-0.10102071613073349,
0.12967906892299652,
0.6120834350585938,
-0.1341802030801773,
0.26289916038513184,
0.028956251218914986,
0.3916918933391571,
-0.5484589338302612,
-0.2392650693655014,
-0.811181366443634,
-0.4226267337799072,
0.5690099000930786,
-0.40450042486190796,
0.0788023546338081... | |
= $(top_builddir)/include/config.h
CONFIG_CLEAN_FILES = fuse.pc
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-dvi-recursive install-exec-recursive \
install-html-recursive install-info-recursive \
... | [
-0.014286029152572155,
0.18836012482643127,
0.19644206762313843,
-0.25786733627319336,
0.26830461621284485,
0.08254428952932358,
0.5728173851966858,
-0.6554223299026489,
-0.20031078159809113,
-0.5710678696632385,
-0.7039349675178528,
0.9909253716468811,
-0.3782329559326172,
-0.428062498569... | |
= ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
am__remove_distdir = \
{ test ! -d $(distdir) \
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -fr $(distdir); }; }
DIS... | [
-0.03622697293758392,
0.06923957169055939,
0.26300352811813354,
-0.24325981736183167,
0.1221492663025856,
0.2140294760465622,
0.49525123834609985,
-0.4428265690803528,
0.10761239379644394,
-0.3113887310028076,
-0.34560850262641907,
0.9379259943962097,
-0.3210689127445221,
-0.01681762188673... | |
gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing
CPP = gcc -E
CPPFLAGS =
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DSYMUTIL =
DUMPBIN =
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EXEEXT =
FG... | [
0.09768432378768921,
0.08767435699701309,
0.4273720681667328,
-0.15061935782432556,
0.15432687103748322,
-0.10310971736907959,
0.24070310592651367,
-0.7828322649002075,
-0.3701893985271454,
-0.15641361474990845,
-0.45508483052253723,
0.6433702707290649,
-0.35012105107307434,
-0.17115873098... | |
= o
OTOOL =
OTOOL64 =
PACKAGE = fuse
PACKAGE_BUGREPORT =
PACKAGE_NAME = fuse
PACKAGE_STRING = fuse 2.8.1
PACKAGE_TARNAME = fuse
PACKAGE_VERSION = 2.8.1
PATH_SEPARATOR = :
RANLIB = ranlib
SED = /bin/sed
SET_MAKE =
SHELL = /bin/bash
STRIP = strip
UDEV_RULES_PATH = /etc/udev/rules.d
VERSION = 2.8.1
abs_builddir = /hom... | [
-0.05953129380941391,
0.1165459156036377,
0.33472490310668945,
-0.30763277411460876,
-0.16254441440105438,
0.17727719247341156,
0.3331541121006012,
-0.4609232246875763,
-0.06402597576379776,
-0.6068047881126404,
-0.36720454692840576,
0.7466735243797302,
-0.4597419798374176,
-0.301448494195... | |
= ${datarootdir}/info
install_sh = $(SHELL) /home/kaiwii/fuse-2.8.1/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
libfuse_libs = -pthread -lrt -ldl
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
lt_ECHO = echo
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
oldinclude... | [
-0.2519121766090393,
-0.05336054787039757,
0.5048168897628784,
-0.09227747470140457,
-0.01526074018329382,
-0.009055792354047298,
0.4856819212436676,
-0.41162604093551636,
-0.2587405741214752,
-0.7320767641067505,
-0.4671544134616852,
0.6404801607131958,
-0.2306629866361618,
-0.04416509717... | |
Filesystems \
FAQ \
doc/how-fuse-works \
doc/kernel.txt \
doc/Doxyfile
pkgconfig_DATA = fuse.pc
all: all-recursive
.SUFFIXES:
am--refresh:
@:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
... | [
-0.15703226625919342,
0.1573481559753418,
0.2096969038248062,
0.005284295883029699,
0.5663864016532898,
-0.1129072904586792,
0.040637820959091187,
-0.5467755794525146,
-0.4465366303920746,
-0.8662424087524414,
-0.5349128246307373,
0.5828869342803955,
-0.5704327821731567,
-0.099965676665306... | |
cd $(srcdir) && $(AUTOMAKE) --gnu \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case ... | [
-0.007875440642237663,
0.2788895070552826,
0.6669982671737671,
-0.29528748989105225,
0.39116811752319336,
-0.09550505131483078,
0.13228698074817657,
-0.4504163861274719,
-0.18680362403392792,
-0.47075924277305603,
-0.5234430432319641,
0.8339359760284424,
-0.5157627463340759,
0.059714749455... | |
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/confi... | [
-0.0011992829386144876,
0.09662474691867828,
0.08546578139066696,
-0.28522318601608276,
0.4572848081588745,
-0.00933073554188013,
0.4021795988082886,
-0.3976950943470001,
-0.23774240911006927,
-0.4513525366783142,
-0.5718340277671814,
0.6718671917915344,
-0.357319712638855,
-0.230478614568... | |
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
install-pkgconfigDATA: $(pkgconfig_DATA)
@$(NORMAL_INSTALL)
test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
@list='$(pkgconfig_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d=... | [
-0.16844534873962402,
-0.16461552679538727,
0.7279115319252014,
-0.21922552585601807,
0.29386091232299805,
0.1622549295425415,
0.21944431960582733,
-0.6898459792137146,
-0.235366091132164,
-0.042061947286129,
-0.48684412240982056,
1.0520745515823364,
-0.3711012303829193,
-0.284680098295211... | |
\
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
done
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: in... | [
0.6262841820716858,
-0.0011025461135432124,
0.44848281145095825,
-0.5186141729354858,
0.4449101984500885,
0.0726458728313446,
0.3877493441104889,
-0.3190542757511139,
-0.02243042178452015,
-0.38720759749412537,
-0.31921300292015076,
0.7243120074272156,
-0.5928402543067932,
0.11081392318010... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.