text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
b.Value = Math.PI; // RaiseFilteringChanged called - no surprise b.SetValue(Math.PI.ToString()); // RaiseFilteringChanged called - surprised? Console.WriteLine(b.Value); b.SetValue("25"); Console.WriteLine(b.Value); var c = new EqualFilter<DateTime> { Value = DateTime.Today }; Console.WriteLine(...
[ 0.12012738734483719, 0.14650486409664154, 0.5402505993843079, -0.3177211582660675, -0.07884825766086578, 0.056343257427215576, 0.37313753366470337, -0.5097020268440247, -0.16052581369876862, -0.32828274369239807, -0.15933533012866974, 0.46847209334373474, -0.17372053861618042, 0.1351096034...
has overrides and base-class usage commented-out): > 3.14159265358979 > > > 25 > > > 4/10/2012 12:00:00 AM > > > 12/23/2011 12:00:00 AM
[ -0.43163391947746277, -0.009824670851230621, 0.3724447190761566, 0.1256469041109085, 0.12736837565898895, -0.26406967639923096, 0.6644120812416077, -0.26468661427497864, -0.16019147634506226, -0.5040954947471619, -0.38646477460861206, 0.5848984718322754, 0.11721637845039368, 0.224587500095...
I`m trying to execute linux commant 'cat' from java code, but it does not working. ``` Runtime.getRuntime().exec("cat /home/roman/logs/*"); ``` And it working well for cat of single file ``` Runtime.getRuntime().exec("cat /home/roman/logs/mylog.log"); ``` My question is how to cat all files on some dir from jav...
[ -0.004968783352524042, -0.03079097904264927, 0.42825064063072205, -0.4474388062953949, -0.13683994114398956, -0.07885336875915527, 0.4588795602321625, -0.3481316864490509, 0.14270852506160736, -0.8492629528045654, -0.05886826664209366, 0.8846843838691711, -0.762792706489563, 0.171886950731...
I have list view and its adapter stored as global variables. I am not creating my list by extending `ListActivity`. My code is as follows: ``` public void onCreate(Bundle...) { mListView = (ListView) findViewById(R.id.listview1); //setting my custom array adapter...works fine. //also my custom adapter impl...
[ 0.23355327546596527, -0.22509340941905975, 1.0220288038253784, -0.3914996385574341, 0.013650711625814438, 0.26386332511901855, 0.3426976203918457, -0.5378364324569702, -0.22758404910564423, -0.9198784828186035, -0.02596776746213436, 0.8033046126365662, -0.5540137887001038, -0.0196994282305...
start, int before, int count) { if (s == null || s.length() == 0) { mListView.clearTextFilter(); } else { mListView.setFilterText(s.toString()); } } ... ... } ``` My problem is when I enter my string in edit text, it gives me correct no of available
[ -0.14984770119190216, -0.1151801273226738, 0.8534382581710815, -0.3150622248649597, 0.09681618213653564, 0.0025568061973899603, 0.5878003239631653, -0.16846667230129242, -0.10396616905927658, -0.8643763661384583, -0.35209643840789795, 0.5267210006713867, -0.442603200674057, 0.0540238842368...
search items (only number) in my list but not the items itself. For example if my list has items **aa, bb, cc, dd, ff, ee, ee** So if I search for **ee**, my result will be **aa, bb** and not the **ee, ee**. And if I search **cc**, my filter list will show **aa** only. Can anyone help me on this? I have a working ex...
[ 0.015762705355882645, -0.48784253001213074, 0.6319828033447266, -0.17890779674053192, -0.09661705791950226, 0.021814852952957153, 0.08343154937028885, -0.2696525752544403, -0.44754597544670105, -0.9820588827133179, 0.01720012165606022, 0.48829951882362366, -0.5873521566390991, 0.0117556490...
public void onTextChanged(CharSequence s, int start, int before,int count) { adapter.getFilter().filter(s); } @Override public void afterTextChanged(Editable s) { // TODO Auto-generated method stub }
[ -0.03033391572535038, -0.5839954018592834, 0.36606964468955994, -0.18574032187461853, 0.13161472976207733, 0.1973089873790741, 0.45716625452041626, -0.27281033992767334, 0.0024173487909138203, -0.7546555399894714, -0.25918254256248474, 0.5044388175010681, -0.7193539142608643, 0.02212396450...
}; ``` The adapter must `implements Filterable` ``` @Override public Filter getFilter() { // Filter filter = null; if(filter == null) filter = new CheeseFilter();
[ -0.07542668282985687, -0.2576170861721039, 0.29751405119895935, -0.6607046723365784, 0.3510248363018036, -0.30373039841651917, 0.4789693355560303, -0.1517365574836731, 0.07910003513097763, -0.8183484673500061, -0.4937339723110199, 0.7060527801513672, -0.7719675898551941, 0.0466729328036308...
return filter; } ``` And the filter class: ``` public class CheeseFilter extends Filter { @Override protected FilterResults performFiltering(CharSequence constraint) { // TODO Auto-generated method stub
[ 0.14995212852954865, -0.28441348671913147, 0.12957829236984253, -0.46687087416648865, 0.007821865379810333, -0.1053207740187645, 0.3059937059879303, -0.35679149627685547, 0.09605485945940018, -0.520103931427002, -0.2362564653158188, 0.6863394975662231, -0.8175246119499207, -0.1483025699853...
constraint = constraint.toString().toLowerCase(); FilterResults newFilterResults = new FilterResults(); if (constraint != null && constraint.length() > 0) { ArrayList<String> auxData = new ArrayList<String>(); for (int i = 0; i < data.size(); i...
[ -0.30866628885269165, -0.6739435791969299, 0.6142920851707458, -0.3614581227302551, 0.17934362590312958, 0.37774959206581116, 0.34055066108703613, -0.6373718976974487, -0.5351548790931702, -0.5294750928878784, -0.2858213186264038, 0.6853939890861511, -0.7081595063209534, -0.056708984076976...
if (data.get(i).toLowerCase().contains(constraint)) auxData.add(data.get(i)); } newFilterResults.count = auxData.size();
[ -0.05725482851266861, -0.42700210213661194, 0.5820534229278564, -0.2924007773399353, 0.4156884253025055, -0.020834119990468025, 0.444410502910614, -0.6876172423362732, -0.3126719295978546, -0.31856831908226013, -0.3103606104850769, 0.6173620820045471, -0.4171254634857178, -0.04092838987708...
newFilterResults.values = auxData; } else { newFilterResults.count = data.size(); newFilterResults.values = data; }
[ -0.09088357537984848, -0.5019804835319519, 0.48020830750465393, -0.15412399172782898, 0.2728945314884186, -0.034127913415431976, 0.5711095333099365, -0.5524654388427734, -0.3599017560482025, -0.5397366285324097, -0.29291480779647827, 0.4402278959751129, -0.2953551411628723, 0.1355666369199...
return newFilterResults; } @Override protected void publishResults(CharSequence constraint, FilterResults results) { ArrayList<String> resultData = new ArrayList<String>(); resultData = (ArrayList<String>) results.values;
[ -0.0838579386472702, -0.33702170848846436, 0.4849666357040405, -0.2846287190914154, 0.15653792023658752, 0.05191148445010185, 0.430332750082016, -0.559711217880249, -0.1768166422843933, -0.46917203068733215, -0.2763402760028839, 0.6067749261856079, -0.5439215302467346, 0.09356280416250229,...
EfficientAdapter adapter = new EfficientAdapter(context, resultData); list.setAdapter(adapter); // notifyDataSetChanged(); } } ``` You can check this post for more info: [Filter expandableList](https://stackoverflow.com/questions/5775774/custom-expandable-list-view-...
[ -0.16928857564926147, -0.3836729824542999, 0.43065422773361206, -0.03822755068540573, 0.1756323128938675, 0.16070587933063507, 0.11812698841094971, -0.2378261834383011, -0.2867361903190613, -0.8907812833786011, -0.48282188177108765, 0.4432387948036194, -0.2758972942829132, -0.0532899610698...
i am using magento 1.5 and have strange problem in the category edit and product edit page in admin, the subcategory tree for one category is not showing i have write the custom code to find the subcategory for that particular category and its not showing any subcategory using that code, but when i have checked in the...
[ 0.1575402170419693, 0.2903812825679779, 0.2720332741737366, 0.35154789686203003, -0.3686129152774811, -0.2786519527435303, 0.17621755599975586, -0.004412541165947914, -0.013564029708504677, -0.7019594311714172, -0.07979779690504074, 0.9054203629493713, -0.2679649889469147, -0.2661490440368...
am just posting so it can help future questions. 1- I got this problem after i removed alot of products from a under Root category using "Catalog/Manage Categories" and deselecting the products in "Category Products" Tab. 2- The pattern category was **Hardware**, and inside i had several subcategories, the expand "+"...
[ 0.160735085606575, 0.09875723719596863, 0.565062940120697, 0.009791003540158272, 0.1261296421289444, 0.10753431916236877, 0.2628077268600464, -0.6021751165390015, -0.46839526295661926, -0.6296629905700684, -0.07597848027944565, 0.4204489588737488, -0.20565934479236603, 0.2035607099533081, ...
happened to me once when i moved a subcategory from one category and moved it inside other different category. Cheers!
[ 0.25235870480537415, 0.39853882789611816, 0.14284971356391907, -0.24480384588241577, -0.3478951156139374, -0.135399729013443, 0.3615555763244629, 0.31396347284317017, -0.5367265939712524, -0.45812320709228516, 0.07051286101341248, 0.19975122809410095, 0.3894910514354706, 0.1571651697158813...
I want to delete the column where date is passed ``` DELETE FROM voyages WHERE date < GETDATE() ``` but it doesn't work, in B.D the date is in this form `yyyy/mm/dd` I can assure you that Zachary Schuessler solution works perfectly in 1.7.0.2. I am just posting so it can help future questions. 1- I got this problem...
[ -0.07004565000534058, 0.19951212406158447, 0.5717801451683044, -0.0450674407184124, 0.1772521436214447, -0.023403530940413475, 0.23102989792823792, -0.0722571611404419, -0.43515899777412415, -0.6306050419807434, -0.12989825010299683, 0.3882676959037781, -0.387452632188797, 0.48264148831367...
in frontend. 3- Did as Zachary Schuessler said and looking at database at **Hardware** category ID, "children\_count" column in "catalog\_category\_entity" i had a value of "-20". 4- Edited the value to "20" and all was fine again in backend. Note: This also happened to me once when i moved a subcategory from one ca...
[ -0.11745478212833405, 0.07590462267398834, 0.6908060908317566, 0.17093539237976074, 0.13369664549827576, 0.1029774397611618, 0.13487577438354492, -0.5802580714225769, -0.4171079397201538, -0.5498325228691101, -0.1314343363046646, 0.6080908179283142, -0.022179124876856804, -0.09695000946521...
I'm a Haskell beginner and I'm using xmonad. I'm trying to make it prompt me before quitting as I occasionally hit mod+q by accident. I've found two ways of doing that, but I must be doing something wrong because neither of them work for me: <https://bbs.archlinux.org/viewtopic.php?id=120298> http://comments.gmane.org/...
[ 0.16161058843135834, -0.16524158418178558, 0.276414692401886, -0.10885708779096603, -0.013918913900852203, 0.21281614899635315, 0.09058894217014313, -0.3298167288303375, -0.1888713389635086, -0.6932520866394043, 0.051115989685058594, 0.6714795231819153, -0.6110095977783203, -0.095149703323...
"xmonad --restart") conf_quit = do response <- runProcessWithInput "dmenu" ["-p", "Quit?"] "yes\nno\n" when (response == "yes") (spawn "xmonad --restart") main = do dzen2Pipe <- spawnPipe "dzen2 -w 1200 -xs 1 -ta l -fn '-*-terminus-*-*-*-*-16-*-*-*-*-*-*-*' -bg black -fg #d3d7cf " dzen2Right <- sp...
[ -0.1260770559310913, -0.4332135021686554, 0.29145482182502747, -0.18738703429698944, 0.3567247986793518, 0.049062300473451614, 0.10885904729366302, -0.0592566542327404, -0.35706377029418945, -0.5826535820960999, -0.307797908782959, 0.9171162843704224, -0.23053699731826782, -0.0064060785807...
workspaces = workspaces' , manageHook = manageHook' <+> manageHook defaultConfig , modMask = mod4Mask , terminal = "gnome-terminal" , layoutHook = layoutHook' , logHook = logHook' dzen2Pipe }
[ -0.6869713664054871, -0.27456799149513245, 0.512126624584198, -0.20944787561893463, 0.2860935628414154, 0.3131773769855499, 0.46598145365715027, 0.1985718458890915, -0.3011162579059601, -0.8214099407196045, -0.2900308668613434, 0.6691104173660278, -0.6029004454612732, -0.05405837297439575,...
`additionalKeysP` [ -- Lock Screen ("M-S-l", spawn "gnome-screensaver-command -l") -- Sleep , ("M-S-;", spawn "gnome-screensaver-command -l; pmi action suspend")
[ -0.056905798614025116, -0.16201812028884888, 0.7398514747619629, -0.05006338283419609, 0.42399901151657104, -0.030281074345111847, 0.26287728548049927, -0.15037822723388672, -0.5231506824493408, -0.3507198393344879, -0.6841260194778442, 0.78106290102005, -0.25549256801605225, -0.1154012754...
-- wireless , ("M-S-C-w", spawn "~/.xmonad/wireless.sh") -- 1 screen reconf , ("M-S-C-1", spawn "~/.xmonad/1-screen.sh") -- 2 screen reconf , ("M-S-C-2", spawn "~/.xmonad/2-screen.sh")
[ 0.21901176869869232, -0.20671749114990234, 0.2917141914367676, -0.06657326221466064, 0.014053846709430218, 0.2574424743652344, 0.11082327365875244, -0.0809125229716301, -0.17261065542697906, -0.9947503209114075, -0.386912077665329, 0.5357232093811035, -0.17929039895534515, 0.02604801394045...
-- confirm for quit , ("M-q", conf_quit) ] `additionalKeys` M.toList (planeKeys mod4Mask GConf Finite) layoutHook' = avoidStruts $ layoutHook defaultConfig logHook' = dynamicLogWithPP . dzenPP' dzenPP' h = defaultPP
[ -0.09635350108146667, -0.10320304334163666, 0.5878505110740662, 0.09180693328380585, 0.6245566010475159, -0.22451497614383698, 0.2778566777706146, -0.4619450867176056, -0.22833320498466492, -0.26739242672920227, -0.1532791554927826, 0.8829753398895264, -0.4189877510070801, -0.1490819901227...
{ ppOutput = hPutStrLn h } manageHook' = composeAll [ className =? "Pidgin" --> doShift "1" , className =? "Firefox" --> doShift "2" , className =? "Thunderbird" --> doShift "3" , className =? "OpenOffice.org 3.2" --> doShift "4", manageDocks ] ``` Thanks! Edit: the menu is...
[ -0.17311251163482666, 0.0841275304555893, 0.5474920272827148, -0.10206674039363861, -0.028282875195145607, 0.022707633674144745, 0.4821481704711914, -0.2930698096752167, -0.2275044322013855, -0.8118744492530823, -0.16873213648796082, 0.6416946053504944, -0.41272643208503723, -0.03370417281...
to the end of the string it returns. You just need to do the following and it works for me: ``` confirm :: String -> X () -> X () confirm m f = do result <- dmenu [m] when (init result == m) f ``` And then, as @mariop suggested use either ``` confirm "Restart" $ spawn "xmonad --recompile && xmonad --restart" `...
[ -0.06360813230276108, -0.07106206566095352, 0.6605468392372131, -0.015652036294341087, 0.5492841005325317, -0.3133525252342224, 0.09073790907859802, 0.01574985682964325, 0.024370776489377022, -0.205892413854599, 0.10072845965623856, 0.6551647186279297, -0.024746030569076538, 0.342065721750...
I retrieved individual `String` values from a database and converted it into a String array by using the String method `split()`. ``` ResultSet set = state.executeQuery("SELECT * FROM numberLotto"); while(set.next()) { num1 = set.getString(1); num2 = set.getString(2); num3 = set.getStri...
[ -0.09431838244199753, -0.34729689359664917, 0.2734096944332123, -0.14067167043685913, -0.03188038989901543, 0.16916105151176453, 0.2890547215938568, -0.7187200784683228, -0.02754480205476284, -0.33483076095581055, -0.1115562915802002, 0.1794770509004593, -0.2557337284088135, 0.181305408477...
+ " " + num3 + " " + num4 + " " + num5 + " " + num6 + " " + num7 + " " + "/"; } String[]listOfNumbers = totalLotto.split("/"); ``` The resulting output is as follow ``` 3 18 27 38 41 45 47 4 7 11 15 22 33 42 2 9 15 23 24 39 44 4 11 16 17 35 39 48 ``` etc How could I add the above numbers into an ...
[ 0.178940549492836, -0.019229313358664513, 0.19720052182674408, -0.26683467626571655, 0.13988949358463287, 0.233901247382164, 0.32278335094451904, -0.4953708052635193, -0.5178740620613098, -0.04486340284347534, -0.22374433279037476, 0.3732699453830719, -0.15599454939365387, 0.11660370230674...
if they are contained in a list of winning numbers?) Kind regards Why are you using strings at all? This seems to be numbers so integers would be a better match: ``` List<int[]> listOfNumbers = new ArrayList<int[]>(); while(set.next()) { int[] numbers = new int[7]; for (int i = 0; i < numbers.length; i++) {...
[ 0.10335440188646317, -0.18407712876796722, 0.37202492356300354, -0.1629505455493927, -0.197913259267807, -0.13394485414028168, 0.21175286173820496, -0.6678940653800964, -0.3748922049999237, -0.5816946029663086, -0.14313696324825287, 0.7326570749282837, -0.375861793756485, -0.06364288926124...
I have been contacted by a hacker saying there gonna take my site down using session hijacking he has said that my text boxes are session hijacking vulnerable. Is there anyway to protect text boxes from session hijacking Im using this to escape and protect from sql injection. Here is my form ``` <form name="...
[ 0.3069950342178345, 0.23136363923549652, 0.40946629643440247, -0.0341193713247776, -0.26148539781570435, -0.43472951650619507, 0.47116515040397644, -0.4332256615161896, -0.11249057948589325, -0.4414297640323639, 0.07509909570217133, 0.539849579334259, -0.26455017924308777, 0.13737261295318...
is my hideboxupdate.php ``` <?php $yes= mysql_real_escape_string($_POST['yes']); $yes2 = strip_tags($yes); $no= mysql_real_escape_string($_POST['no']); $no2 = strip_tags($no); ?> <?php if (isset($yes2)) { $result3333 = mysql_query("UPDATE users SET hide_box='1' WHERE username = '".$_SE...
[ 0.09928850084543228, -0.14630432426929474, 0.6624406576156616, -0.38730865716934204, 0.24844646453857422, -0.12751132249832153, 0.619874894618988, -0.4123700261116028, 0.014341623522341251, -0.4294392168521881, -0.3305633068084717, 0.4075537919998169, -0.4790393114089966, -0.12624587118625...
ip and put in in the database, on every page load check if its still the same, if not destroy the session.
[ 0.30342215299606323, 0.10234730690717697, 0.12511111795902252, 0.3855540156364441, -0.03830907121300697, -0.432897686958313, 0.051314231008291245, 0.005396638996899128, -0.26929041743278503, -0.5525093674659729, -0.18445180356502533, 0.5187618732452393, -0.19718362390995026, 0.465825170278...
I'm using Exlipse with Xdebug to debug my php codes, which works well. But there is one type of codes I can't debug: **callback functions** I'm using preg\_replace: ``` $pc = preg_replace('#\[div(=(.*))?\](.*?)\[/div\]#iuUe', "\bbcode_div('\$2', '\$3')", $_POST["data"]); ``` which calls the function all right, but...
[ 0.2732905149459839, 0.1878124177455902, 0.3563953638076782, -0.22382131218910217, 0.021384254097938538, -0.005008162464946508, 0.5573439598083496, -0.12922479212284088, -0.06270781904459, -0.5670205950737, -0.19025614857673645, 0.8885586857795715, -0.393130362033844, 0.006159845273941755, ...
is required when `preg_replace()` is used with the `e` modifier. In this case, setting a breakpoint is not sufficient. You'd have to explicitly tell XDebug to break: ``` function replace($t) { // Production systems might (should) not have this function if (function_exists('xdebug_break')) { xdebug_break...
[ 0.35274696350097656, -0.01794102042913437, 0.3533567488193512, -0.29943230748176575, 0.45776858925819397, -0.26560914516448975, 0.14312373101711273, -0.2978247404098511, -0.07045172899961472, -0.3131077289581299, -0.7809184193611145, 0.7637732028961182, -0.476834774017334, -0.0754245892167...
Why does this assertion fail? ``` Assert.AreEqual( Color.Red, Color.FromArgb( Color.Red.A, Color.Red.R, Color.Red.G, Color.Red.B ) ); ``` Here is how Colors comparison implemented: ```csharp public override bool Equals(object obj) { if (obj is Color) { Color color = (Color) obj; if ((this.val...
[ -0.2853213846683502, 0.09581106156110764, 0.4651116132736206, -0.20929794013500214, 0.13318407535552979, 0.0669172927737236, 0.5339861512184143, -0.5718764066696167, -0.012373268604278564, -0.5235493183135986, -0.291698157787323, 0.6822672486305237, -0.5163969397544861, 0.18230658769607544...
return ((this.name == color.name) || ((this.name != null) && (color.name != null) && this.name.Equals(color.name))); } } return false; } ``` How it works: 1. Field `value` compared. It is Argb values of current instance (they
[ -0.23938752710819244, 0.15247660875320435, 0.3591598868370056, -0.15702062845230103, 0.2074243277311325, 0.08661411702632904, 0.2835196256637573, -0.5135740637779236, -0.04307089000940323, -0.5418310761451721, -0.17463909089565277, 0.8448693156242371, -0.4032425880432129, 0.251468718051910...
are stored in one field of type `long`). So, if Argb different, we have different colors. You pass this step successfully. 2. Field `state` compared. It shows the way how color was created: from Argb, from KnownColor, or by name. **Actually your comparison fails on this step.** 3. Field `knownColor` compared. It has va...
[ 0.041957348585128784, 0.03409051150083542, 0.30554017424583435, 0.1751967966556549, -0.34562304615974426, 0.313459187746048, 0.1695987731218338, -0.6813492774963379, -0.14120692014694214, -0.7959253191947937, 0.1583862602710724, 0.5429273247718811, -0.2578510046005249, 0.40946686267852783,...
method): ```csharp Assert.AreEqual(color1.ToArgb(), color2.ToArgb()); ``` **Edit** To create copy of some color you can use following extension method: ```csharp public static class ColorHelper { public static Color Copy(this Color color) { if (color.IsKnownColor) return Color.FromKnown...
[ 0.08997578173875809, -0.06500737369060516, 0.5892059206962585, -0.13703985512256622, 0.466651976108551, -0.04209830239415169, 0.20140820741653442, -0.5004595518112183, -0.13795264065265656, -0.556646466255188, -0.44942107796669006, 0.8040245771408081, -0.2918490767478943, 0.445583194494247...
} ``` Now assertion passes: ```csharp Assert.AreEqual(Color.Red, Color.Red.Copy()); ``` But it makes no sense, because you can use single color instance in every place of your program :)
[ 0.10731711238622665, 0.25712138414382935, 0.0784459188580513, -0.02302645891904831, 0.25143739581108093, -0.11920830607414246, 0.43750613927841187, -0.18359149992465973, -0.04188365489244461, -0.5285048484802246, -0.3325559198856354, 0.7369264364242554, -0.33506807684898376, 0.319630056619...
Does anyone know what a variable highlighted in red means? Thanks. It means its value was changed since the last time the program was stopped in the debugger. For example, if you write the code: `int a = 10; a = 20;`, and step over it with F10, you'll notice the variable 'a' turns red when you step over the second lin...
[ 0.057018354535102844, 0.11969570815563202, 0.2661770284175873, -0.0913214460015297, -0.08411820977926254, 0.27561643719673157, 0.4679415225982666, 0.35674065351486206, -0.503098726272583, -0.48554810881614685, -0.11660397052764893, 0.4758874773979187, -0.06668148189783096, 0.10110907256603...
I have a dynamic library that gets a different name depending on configuration, specified in the CMake scripts by: ``` set_target_properties(${name} PROPERTIES OUTPUT_NAME ${outputName}64) set_target_properties(${name} PROPERTIES DEBUG_OUTPUT_NAME ${outputName}64_d) ``` The end result is that I get a different name ...
[ 0.14265954494476318, 0.06330010294914246, 0.6333732604980469, -0.1360986828804016, -0.09071948379278183, -0.0013706604950129986, 0.31048235297203064, -0.24060650169849396, -0.23698575794696808, -0.6554602384567261, -0.0765363946557045, 0.7464514970779419, -0.41679707169532776, 0.3212258517...
the source does not include the \_d that I would have expected. **How do I get the output path for the target so that I can copy the file?** **Note:** As can be seen from the above snippet, this is currently for Windows/Visual Studio, but I would like this to work on OS X / Xcode / make as well. **Note:** I need the ...
[ 0.7745646238327026, 0.21775175631046295, 0.1731177270412445, 0.0495297871530056, 0.05217510834336281, -0.21634060144424438, 0.16517971456050873, -0.019850773736834526, 0.13992437720298767, -1.046512484550476, -0.054103583097457886, 0.6652137041091919, -0.08346211165189743, -0.0441107191145...
would be acceptable would be to be able to create a custom target that does the copying, so that the other projects can depend on this project, which in turn depends on the library. Rather than using the obsolete `LOCATION` property, prefer using generator expressions: ``` add_custom_command(TARGET mylibrary POST_BUIL...
[ 0.4678478240966797, -0.01964137703180313, 0.3380163908004761, 0.05061040818691254, -0.021110080182552338, 0.005785136949270964, -0.20524035394191742, -0.39159876108169556, -0.1981845647096634, -0.8033654689788818, 0.012535379268229008, 0.5551339387893677, -0.38453441858291626, 0.1932649910...
RUNTIME_OUTPUT_DIRECTORY_DEBUG <debug path> RUNTIME_OUTPUT_DIRECTORY_RELEASE <release path> ) ``` For further details run: ``` cmake --help-property "RUNTIME_OUTPUT_DIRECTORY" cmake --help-property "RUNTIME_OUTPUT_DIRECTORY_<CONFIG>" ``` Also, you should be able to use forward slashes through...
[ -0.1665143519639969, 0.05142362788319588, 0.4958155155181885, -0.3244480490684509, -0.10392897576093674, 0.040821295231580734, 0.3836855888366699, -0.18841513991355896, -0.38921117782592773, -0.8461465239524841, -0.3185604512691498, 0.3857259154319763, -0.10202933847904205, 0.1612748652696...
I'm trying to find the CN of a username by searching for the employeeID attribute (which is unique for each employee). I already got it to return a string with all attributes, but I want it to return only the CN of a user (ex: 'John Doe' or 'cn=John Doe'; both are fine) ``` public void getEmployeeId(String id) { ...
[ 0.1528051644563675, 0.0505402497947216, 0.309434711933136, 0.09595971554517746, 0.3486301898956299, 0.18671445548534393, 0.23969683051109314, 0.25098904967308044, -0.20599545538425446, -0.7281333208084106, -0.015735216438770294, 0.23633736371994019, -0.12850557267665863, 0.4585895538330078...
directory context..."); LdapContext ctx = new InitialLdapContext(env, null); // Create default search controls SearchControls ctls = new SearchControls(); // Search for user with 'id' as value for employeeID attribute String filter = "(&(employeeID=" +id + "...
[ -0.37358590960502625, -0.4985511302947998, 0.6912738680839539, -0.2543179392814636, 0.19506928324699402, -0.015753300860524178, 0.011169438250362873, -0.23265641927719116, -0.04824350029230118, -0.7459244728088379, -0.36867764592170715, 0.6251047849655151, -0.6340773105621338, 0.1197324097...
// Search for objects using filter NamingEnumeration answer = ctx.search(groupName, filter, ctls); // Print the answer // Search.printSearchEnumeration(answer); System.out.println("-----------------"); System.out.println(answer.next()); System.ou...
[ -0.5108926296234131, -0.2276495099067688, 0.3239253759384155, -0.26339858770370483, -0.12971912324428558, -0.022461645305156708, 0.12289779633283615, -0.3545941412448883, -0.1222701296210289, -0.5684000253677368, -0.469770222902298, 0.24929766356945038, -0.44169914722442627, 0.060931239277...
// Close the context when we're done ctx.close(); } catch (NamingException e) { // TODO Auto-generated catch block e.printStackTrace(); } } ``` *note: I know you can just cut parts from a string, but I want it to return only the value I need.* The search request...
[ 0.23679280281066895, -0.134196475148201, 0.2584076225757599, -0.18626360595226288, 0.16620709002017975, -0.19587835669517517, 0.15611426532268524, -0.33957237005233765, 0.03637957572937012, -0.44524967670440674, -0.17160876095294952, 0.631903350353241, -0.12396013736724854, 0.0814251154661...
Some APIs will return all attributes from matching entries. Specify `cn` in the list of attributes to return, and be prepared to handle a multi-valued `cn` attribute. ### see also * [LDAP: Mastering Search Filters](http://ff1959.wordpress.com/2011/09/21/mastering-ldap-search-filters/) * [LDAP: Search best practices](...
[ 0.2798157036304474, 0.1932915896177292, 0.25586944818496704, -0.01723862998187542, -0.18792106211185455, -0.24641838669776917, -0.07486855238676071, -0.12720808386802673, -0.26899728178977966, -0.37721410393714905, -0.38204842805862427, 0.6346767544746399, -0.37291380763053894, -0.22942331...
EIM job is getting error out while running it. Below is my IFB file - ``` "[Siebel Interface Manager] USER NAME = 'SADMIN' PASSWORD = 'SADMIN' PROCESS = "PROCESS UPDATE" [PROCESS UPDATE] TYPE = IMPORT BATCH = 30032012 - 30032015 TABLE = EIM_FN_ASSET5 INSERT ROWS = S_ASSET_CON, FALSE UPDATE ...
[ -0.5553222894668579, 0.21707309782505035, 0.6608684062957764, -0.40352025628089905, 0.18126173317432404, 0.15352316200733185, 0.42144274711608887, -0.3318325877189636, -0.07357793301343918, -0.829129695892334, -0.12952886521816254, 0.7305499911308289, -0.1453172266483307, -0.22912883758544...
placed IFB in admin folder itself and below is the log file - "2021 2012-04-03 05:35:25 2012-04-03 05:35:25 -0500 00000002 001 003f 0001 09 srvrmgr 16187618 1 /004fs02/siebel/siebsrvr/log/srvrmgr.log 8.1.1.4 [21225] ENU SisnapiLayerLog Error 1 0000000c4f7a00e2:0 2012-04-03 05:35:25 258: [SISNAPI] Async Thread: connect...
[ -0.23112617433071136, 0.09936153143644333, 0.5890511870384216, -0.13468123972415924, -0.039365239441394806, -0.04154490679502487, 0.36625295877456665, -0.24259917438030243, -0.18619093298912048, -0.5940498113632202, -0.11454282701015472, 0.46130844950675964, -0.4496854543685913, 0.21274961...
isn't returning you the actual image. It's returning you a URI that you can use to look up the image. The way you translate that URI into an actual image is this: Your URI is `content://media/external/images/media/2` as per the error message. So, we'll basically create a query and run it on the `MediaStore`'s `Conten...
[ 0.2215488702058792, -0.21034879982471466, 0.7288403511047363, 0.18841326236724854, -0.12917199730873108, -0.2080863118171692, 0.019856451079249382, -0.1825859248638153, -0.03245842084288597, -0.5333552956581116, -0.28864264488220215, 0.6719776391983032, -0.5492496490478516, 0.2636317908763...
// DATA is the column name in the database for the filename of the image String[] projection = { MediaStore.Images.Media.DATA }; // use the URI you were given in order to look up the right image, // and get a Cursor object that will iterate over the matching rows in the // database. ...
[ 0.11632952094078064, -0.13352438807487488, 0.9442235827445984, 0.13803455233573914, 0.08139554411172867, 0.09462334960699081, -0.4385875165462494, -0.25998225808143616, -0.2007036805152893, -0.5482980608940125, -0.044110044836997986, 0.4659062623977661, -0.43343478441238403, 0.331580221652...
projection, null, null, null ); // since we only care about one image... if ( photoCursor != null && photoCursor.getCount() == 1 ) { // go to
[ -0.026523077860474586, -0.3386344313621521, 0.7266685366630554, 0.2566157281398773, 0.41773951053619385, -0.07894016057252884, 0.0416567362844944, -0.10107570886611938, -0.18649880588054657, -0.5201960802078247, -0.30809155106544495, 0.4380742311477661, -0.40811774134635925, -0.26924410462...
the first row that was returned photoCursor.moveToFirst(); // get the string in the DATA column at that row String photoFilePath = photoCursor.getString( photoCursor.getColumnIndex(MediaStore.Images.Media.DATA) ); // Load image from path retu...
[ -0.0337129607796669, -0.40759754180908203, 0.8795152306556702, -0.032133009284734726, 0.017568914219737053, 0.12503235042095184, -0.04989084601402283, -0.2556139826774597, -0.218642458319664, -0.7827019691467285, -0.22684001922607422, 0.48742395639419556, -0.6411762237548828, -0.1171393170...
BitmapFactory.decodeFile( photoFilePath, null ); } } finally { // close up the cursor if ( photoCursor != null ) { photoCursor.close(); } } return null; } ```
[ -0.09225445985794067, -0.12253519147634506, 1.009035587310791, -0.22884511947631836, 0.03529547154903412, -0.08339203149080276, 0.1918935626745224, -0.47946974635124207, -0.12801381945610046, -0.3669069707393646, -0.42874953150749207, 0.5929027795791626, -0.763338029384613, -0.027273898944...
I'm using the `SerialDataReceivedEventHandler` to know when my `SerialPort` object receives data. Is it possible to know when I won't be receiving anymore data because the inter-byte timeout has occurred? all you can do is ``` $("#" + target).function() ``` so you code will be ``` //animation completed ...
[ -0.008629144169390202, -0.13998742401599884, 0.766591489315033, 0.05951761081814766, 0.1490950584411621, -0.018207291141152382, 0.21306952834129333, -0.1371918022632599, -0.4051184058189392, -0.7738806009292603, -0.039320576936006546, 0.6002785563468933, -0.1879243552684784, 0.336917787790...
I am building an order form with PHP and MySQL. The PHP Form has an input box where the user types in a product code. In the event that the user does not know the product code, I want them to click on an image or button next to the input box, which opens a popup with a list of all product codes. they can then click on...
[ 0.7803563475608826, 0.360208660364151, 0.47115257382392883, -0.3418870270252228, 0.04101252183318138, 0.4123120903968811, -0.12284929305315018, -0.0574045404791832, 0.12310416251420975, -0.5577023029327393, 0.033167771995067596, 0.28645452857017517, -0.3061143755912781, 0.03146530687808990...
page it creates so you can get a feel for what I am wanting to acheive. **parent page** ``` <table border=0 id="hor-minimalist-a"> <tr> <th valign=bottom>KVI</th> <th valign=bottom>PACK CODE</th> <th valign=bottom width=250>DESCRIPTION</th> <th valign=bottom width=40>WHSE</th> <th valign=bottom width=25>SU</th> <...
[ -0.11142715066671371, -0.17414328455924988, 0.8793244957923889, 0.013119461014866829, -0.3956555426120758, 0.22572961449623108, 0.12060052156448364, -0.4612475037574768, -0.1701950579881668, -1.0682170391082764, -0.19196029007434845, 0.11791787296533585, -0.1398623138666153, 0.112952403724...
align="left" id="txtHint1">&nbsp;</div> </td> <td> <div align="left" id="whse1">&nbsp;</div> </td> <td> <div align="left" id="su1">&nbsp;</div> </td> </tr> <tr id="r2"> <td> <input type=checkbox name=kvi2 id=kvi2 value=2> </td> <td> <input size=10 type=...
[ -0.3591097295284271, -0.2547970414161682, 0.6060160398483276, -0.21000748872756958, -0.3728853166103363, 0.39038828015327454, 0.11495698243379593, -0.9888558387756348, -0.09741970896720886, -0.6787691712379456, -0.07314806431531906, 0.28839126229286194, -0.24175198376178741, 0.218048930168...
<div align="left" id="txtHint2">&nbsp;</div> </td> <td> <div align="left" id="whse2">&nbsp;</div> </td> <td valign=bottom> <div align="left" id="su2">&nbsp;</div> </td> </tr> <tr id="r3"> <td> <input type=checkbox name=kvi3 id=kvi3 value=3> </td> <td> <i...
[ -0.442400723695755, -0.2915225327014923, 0.45939043164253235, -0.32243776321411133, -0.553356409072876, 0.47957465052604675, 0.34587642550468445, -0.8973985910415649, -0.2210168093442917, -0.664491593837738, -0.12887787818908691, 0.35761359333992004, -0.14429423213005066, 0.158701464533805...
<div align="left" id="txtHint3">&nbsp;</div> </td> <td> <div align="left" id="whse3">&nbsp;</div> </td> <td> <div align="left" id="su3">&nbsp;</div> </td> </tr> <tr id="r4"> <td> <input type=checkbox name=kvi4 id=kvi4 value=4> </td> <td> <input size=10 ...
[ -0.32962387800216675, -0.2710932791233063, 0.44298219680786133, -0.30453920364379883, -0.5393668413162231, 0.4447636008262634, 0.29355984926223755, -0.9454143047332764, -0.16988834738731384, -0.6573629975318909, -0.1624453067779541, 0.35294121503829956, -0.20695795118808746, 0.244031712412...
<div align="left" id="txtHint4">&nbsp;</div> </td> <td> <div align="left" id="whse4">&nbsp;</div> </td> <td> <div align="left" id="su4">&nbsp;</div> </td> </tr> </table> </form> ``` ![parent page](https://i.stack.imgur.com/sLqxF.jpg) **the popup page code and image is below:** ``...
[ -0.03944355621933937, -0.24815453588962555, 0.6072019338607788, -0.36296361684799194, -0.24184563755989075, 0.21476098895072937, 0.11924666166305542, -0.6418870091438293, 0.05953572317957878, -0.7407246232032776, -0.523016095161438, 0.13850805163383484, -0.2176881730556488, 0.2465380728244...
selvalue; window.close(); } // End --> </script> <form name="selectform"> <table border=0 width=1000 id="hor-minimalist-a"> <tr> <th>Pack Code</th>
[ 0.004244443494826555, -0.307425320148468, 0.5646888613700867, -0.4436754882335663, 0.02689240872859955, -0.07685334980487823, 0.006828871089965105, -0.524542510509491, 0.20170359313488007, -0.643703043460846, -0.4227105975151062, 0.30383622646331787, -0.3128536641597748, -0.013894399628043...
<th>&nbsp;</th> <th>Category</th> <th>Product Description</th> <th>Grouping</th>
[ 0.04807785525918007, 0.17447930574417114, -0.13048279285430908, -0.19549863040447235, -0.10034245252609253, 0.29131004214286804, -0.14679387211799622, -0.028722072020173073, -0.32117292284965515, -0.5838476419448853, -0.6288339495658875, 0.13539457321166992, -0.09174444526433945, 0.5271863...
<th>Pack Config</th> <th>SU</th> <th>Points</th> </tr> <?php while($rows=mysql_fetch_array($resultsku)){ ?>
[ 0.0563119575381279, -0.34283459186553955, 0.3864595890045166, -0.30862587690353394, -0.332385390996933, -0.12332245707511902, 0.11099090427160263, -0.7768564820289612, -0.12389472872018814, -0.3905574679374695, -0.2031695693731308, 0.2921788692474365, -0.4599754214286804, -0.26319536566734...
<tr> <td><input name=details size=5 value="<?php echo $rows['packcode']; ?>"></td> <td><input type=button value="Select" onClick="sendValue(this.form.details);"</td> <td><?php echo $rows['category']; ?></td>
[ -0.06822201609611511, -0.3215714395046234, 0.16318967938423157, -0.2078227400779724, -0.1713264435529709, 0.22351162135601044, 0.28665199875831604, -0.9653642773628235, -0.21432937681674957, -0.25003209710121155, -0.22372661530971527, 0.28890615701675415, -0.45441916584968567, 0.0632244199...
<td><center><?php echo $rows['description']; ?></td> <td><center><?php echo $rows['grouping']; ?></td> <td><center><?php echo $rows['packconfig']; ?></td>
[ 0.2413032203912735, -0.1406673938035965, -0.10995855182409286, -0.24654847383499146, -0.08379721641540527, 0.07351947575807571, 0.2830999493598938, -0.9538783431053162, -0.021464122459292412, -0.2645878195762634, -0.1967129409313202, -0.1661069691181183, -0.7970851063728333, -0.16173866391...
<td><center><?php echo $rows['sellingunits']; ?></td> <td><center><?php echo $rows['eottpoints']; ?></td> </tr> <?php } ?>
[ 0.1097986176609993, -0.2045729011297226, 0.1755942702293396, 0.048447076231241226, -0.07170277088880539, 0.46193990111351013, -0.22480091452598572, -0.5157660841941833, -0.252882719039917, -0.26904743909835815, -0.23230768740177155, 0.0009968061931431293, -0.5840322375297546, 0.08943147212...
</table> ``` ![popup window](https://i.stack.imgur.com/n30FM.jpg) I am trying to pass the value of the product code from the selected popup window row, to the parent window input box for 'pack code' I was trying to adapt a script I came across but am not pulling it off. Any help appreciated as always! Regards, Rya...
[ 0.4577298164367676, 0.16089580953121185, 0.7995009422302246, -0.3807738423347473, -0.14455948770046234, 0.07974831014871597, 0.14311036467552185, -0.26422086358070374, 0.057176075875759125, -0.5739057660102844, -0.4989449381828308, 0.5555364489555359, -0.25160059332847595, 0.18312460184097...
return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { //document.getElementById("txtHint" ...
[ 0.046832747757434845, -0.30773258209228516, 0.6881305575370789, -0.1251787394285202, 0.13171304762363434, 0.36879268288612366, 0.24464531242847443, -0.5200938582420349, -0.1599317044019699, -0.7834354639053345, -0.5448548197746277, 0.7560107111930847, -0.5428532958030701, -0.04876723885536...
= xmlhttp.responseText; var description = responseText; var warehouse = ""; var sellingUnits = ""; if (responseText.indexOf("NOT A VALID") == -1) { description = responseText.substring(12, responseText.indexOf(",Warehouse:")); warehouse = responseText....
[ 0.12287039309740067, -0.33099988102912903, 0.6532759666442871, -0.19100119173526764, 0.023785969242453575, 0.15532922744750977, 0.049855656921863556, -0.6518887877464294, -0.13495087623596191, -0.31135982275009155, -0.6962218880653381, 0.7770266532897949, -0.3019247055053711, 0.27740871906...
sellingUnits = responseText.substring(responseText.indexOf(",SellingUnits:")+15); } document.getElementById("whse" + userNumber).innerHTML = warehouse; document.getElementById("txtHint" + userNumber).innerHTML = description; document.getElementById("su" + userNumber).innerHTML = ...
[ 0.19884030520915985, -0.2865506410598755, 0.7909255623817444, -0.22265125811100006, -0.06403748691082001, 0.22400563955307007, 0.04763440415263176, -0.48077860474586487, -0.3016158938407898, -0.4982779026031494, -0.49231356382369995, 0.733642578125, -0.33486640453338623, 0.1484196633100509...
field id window.open('sku.php?id=' + encodeURIComponent(id),'popuppage', 'width=400,toolbar=1,resizable=1,scrollbars=yes,height=400,top=100,left=100'); } function updateValue(id, value) { // this gets called from the popup window and updates the field with a new value document.getElementById(i...
[ -0.08642984181642532, -0.0735429897904396, 0.5316779613494873, -0.24561810493469238, -0.02388172224164009, 0.11852013319730759, 0.2778196334838867, -0.40950968861579895, 0.20673571527004242, -0.5671302080154419, -0.2730601131916046, 0.4007115364074707, -0.2393876314163208, 0.29477998614311...
connect to DB: ' . mysql_error()); } $sql="select packcode,category,description,grouping,packconfig,sellingunits,eottpoints from skudata order by category, packcode"; $result=mysql_query($sql); ?> <script type="text/javascript"> function sendValue(value) { var parentId = <?php echo json_encode($_GET['id...
[ -0.009972935542464256, -0.1528196483850479, 0.45971012115478516, -0.28311434388160706, -0.18657438457012177, 0.2666236460208893, 0.47670692205429077, -0.6765037775039673, 0.15097765624523163, -0.6397489309310913, -0.2580147087574005, 0.24416235089302063, -0.3900497257709503, 0.413484901189...
<th>Pack Code</th> <th>&nbsp;</th> <th>Category</th>
[ -0.008037850260734558, -0.13786464929580688, -0.14691227674484253, -0.2533663511276245, -0.1954192966222763, -0.20105192065238953, 0.21152816712856293, -0.5113189816474915, -0.28560200333595276, -0.5034123063087463, -0.5308219790458679, 0.03129277005791664, -0.5993266701698303, -0.05036582...
<th>Product Description</th> <th>Grouping</th> <th>Pack Config</th> <th>SU</th>
[ 0.26954424381256104, 0.0343557633459568, -0.09112939983606339, -0.3867185711860657, -0.09478895366191864, -0.10967598855495453, -0.06779451668262482, -0.470172643661499, -0.03164059668779373, -0.621634840965271, -0.5622655749320984, 0.03138616681098938, -0.21711885929107666, -0.14753276109...
<th>Points</th> </tr> <?php while($rows=mysql_fetch_array($result)){ ?> <tr> <td><input name=details size=5 value="<?php echo $rows['packcode'];
[ 0.13058766722679138, -0.22746863961219788, 0.5070526003837585, -0.30429989099502563, -0.09681972116231918, 0.07675880938768387, 0.17902880907058716, -0.951217532157898, -0.20941680669784546, -0.1498085856437683, -0.22756463289260864, 0.15941227972507477, -0.43648818135261536, -0.0323996506...
?>"></td> <td><input type=button value="Select" onClick="sendValue(this.form.details);"</td> <td><?php echo $rows['category']; ?></td> <td><center><?php echo $rows['description']; ?></td>
[ -0.19103895127773285, -0.3169616758823395, 0.12066277116537094, -0.1065814346075058, -0.047866400331258774, 0.248582661151886, 0.15706872940063477, -0.7892136573791504, -0.26995500922203064, -0.2882693111896515, -0.23815730214118958, 0.14134182035923004, -0.5063005685806274, 0.124112792313...
<td><center><?php echo $rows['grouping']; ?></td> <td><center><?php echo $rows['packconfig']; ?></td> <td><center><?php echo $rows['sellingunits']; ?></td> <td><center><?php echo $rows['eottpoints']; ?></td>
[ 0.14786839485168457, -0.17146849632263184, 0.03807036578655243, -0.12976300716400146, -0.03852293640375137, 0.36808061599731445, 0.009719941765069962, -0.7220579981803894, -0.0831071212887764, -0.2822808027267456, -0.21154813468456268, -0.06834913790225983, -0.7340776324272156, 0.067224591...
</tr> <?php } ?> </table> ``` Here is the images to show the workings. **parent page:** ![enter image description here](https://i.stack.imgur.com/F9vfp.jpg) **Popup Page:** ![enter image description here](https://i.stack.imgur.com/MNBiA.jpg) **Paren...
[ 0.1355145424604416, 0.2601207196712494, 0.05945945158600807, 0.004700584802776575, -0.15140673518180847, 0.1338190883398056, 0.5853089094161987, -0.28661441802978516, -0.46682727336883545, -0.4679875671863556, -0.417930006980896, 0.39593273401260376, -0.2630694508552551, 0.2171811759471893...
image description here](https://i.stack.imgur.com/T933x.jpg) Thanks again for the help. Regards, Ryan If you want a popup window rather than a `<div />`, I would suggest the following approach. In your parent page, you call a small helper method to show the popup window: ``` <input type="button" name="choice" onClic...
[ -0.04848279431462288, -0.11535175889730453, 0.8198368549346924, 0.16154997050762177, -0.25900039076805115, 0.23386144638061523, 0.1283053308725357, -0.13087715208530426, -0.2199142426252365, -0.7657361030578613, -0.5068193674087524, 0.40812063217163086, -0.30945080518722534, -0.06014860793...
field via `$_GET['id']` and uses it to construct the parent callback function: ``` ?> <script type="text/javascript"> function sendValue(value) { var parentId = <?php echo json_encode($_GET['id']); ?>; window.opener.updateValue(parentId, value); window.close(); } </script> ``` For each row in your popup,...
[ 0.021312525495886803, -0.16810277104377747, 0.43625837564468384, -0.458326131105423, -0.07465701550245285, 0.026332665234804153, 0.15028949081897736, -0.299056738615036, 0.0828942134976387, -0.30896249413490295, -0.28719815611839294, 0.5820490121841431, -0.5354923009872437, -0.023626014590...
my problem is that I have a large set of GPS tracks from different GPS loggers used in cars. When not turned off these cheap devices log phantom movements even if standing still: ![enter image description here](https://i.stack.imgur.com/YIHfH.jpg) As you can see in the image above, about a thousand points get visuali...
[ 0.1289394497871399, -0.02461305260658264, 0.6070224642753601, 0.3849726617336273, -0.013119836337864399, -0.20789863169193268, 0.41696158051490784, 0.10461253672838211, -0.46074849367141724, -0.334898978471756, 0.46089163422584534, 0.4975963234901428, -0.010455059818923473, 0.0382800213992...
circles and check the ratio: `(#points / covered area) > threshold?` ![enter image description here](https://i.stack.imgur.com/WCBfq.jpg) If the threshold exceeds a certain ratio (purple circles), I could delete all points within. So: easy method, but has huge disadvantages, e.g. computation time, deleting "innocent...
[ 0.14485348761081696, -0.17730969190597534, 0.4684768617153168, 0.40293118357658386, -0.2790115475654602, -0.11514045298099518, 0.41772589087486267, -0.451503187417984, -0.27401837706565857, -0.625493586063385, 0.14508505165576935, 0.31551435589790344, -0.1807585209608078, 0.130128279328346...
the track! **Edit:** The result in given example should look like this: ![enter image description here](https://i.stack.imgur.com/yvUnI.jpg) My first step would be to investigate the speeds implied by the 'movements' of your stationary car and the changes in altitude. If either of these changes too quickly or too slow...
[ 0.2769697904586792, -0.07606862485408783, 0.5098395943641663, 0.2930452525615692, 0.14266431331634521, 0.15283797681331635, 0.26548656821250916, -0.07291162014007568, -0.3609400689601898, -0.1513032615184784, 0.17306916415691376, 0.7312116622924805, 0.2404451072216034, -0.1370997577905655,...
but GPS location jittering'. I suggested one approach, Benjamin suggested another. If speed doesn't discriminate accurately enough, try acceleration. Try rate of change of heading. If none of these simple approaches work, I think it's time for you to break out your stats textbooks and start figuring out autocorrelation...
[ 0.23304641246795654, 0.2064305692911148, 0.24888597428798676, 0.31235626339912415, 0.013708597049117088, 0.0341339148581028, 0.20550034940242767, 0.13105003535747528, 0.1544058918952942, -0.6749700307846069, 0.21915344893932343, 0.3301669955253601, 0.16896450519561768, -0.29831549525260925...
What is the best way (regarding database design) for storing images for different purposes? I have a bunch of user photos and I got another 5 different sets of photos (like user photos but with no connection to user photos). Is the best thing to store all photos in a single database table and try to reference them fr...
[ 0.6390864849090576, 0.1051773652434349, 0.18823575973510742, 0.5354394316673279, 0.054117895662784576, 0.13009704649448395, 0.20076322555541992, -0.39155498147010803, -0.3856705129146576, -0.3368678390979767, 0.5204736590385437, 0.2960171699523926, -0.35061025619506836, 0.0449419729411602,...
consider? Another example could be addresses. A user can have an address but so can a company or a location. Create one table for all addresses and try to have some sort of index tables to reference what address belongs to what object or have different tables and eliminate the problem. > NOTE: this answer is now `anc...
[ 0.3260233700275421, 0.07376395910978317, 0.2011510133743286, 0.2729080617427826, 0.17777860164642334, 0.08428633213043213, -0.10506794601678848, -0.150809183716774, -0.3344086706638336, -0.9112312197685242, 0.25126931071281433, 0.20512105524539948, -0.4660775363445282, 0.17082536220550537,...
chunks of binary data in SQL Server is not a great approach. It makes your database very bulky to backup and performance is generally not great. Storing **files** is usually done on the **file** system. Sql Server 2008 has out of the box support for `FILESTREAM`. Microsoft documents the cases to use **FileStream** as f...
[ -0.19715586304664612, 0.16661496460437775, 0.14397521317005157, 0.17784343659877777, -0.40396150946617126, -0.1682834029197693, 0.15312819182872772, 0.14068913459777832, -0.49347272515296936, -0.23735450208187103, -0.2278597503900528, 0.32417309284210205, -0.1685093492269516, 0.25047010183...
the following statement. ``` EXEC sp_configure filestream_access_level, 2 RECONFIGURE ``` Configure the Database ---------------------- To get a filestream filegroup linked to your database create ``` ALTER DATABASE ImageDB ADD FILEGROUP ImageGroup CONTAINS FILESTREAM ALTER DATABASE ImageDB ADD FILE ( NAME = 'I...
[ 0.12073031067848206, 0.15054702758789062, 0.9521061182022095, 0.10565891861915588, -0.006192460656166077, -0.2900729179382324, -0.19850867986679077, -0.4198625981807709, -0.3192861080169678, -0.7111422419548035, 0.0054601882584393024, 0.7322134375572205, -0.35278448462486267, 0.00231021200...
a field which has the `ROWGUIDCOL` property. Inserting Data with TSQL ------------------------ Now to insert data in this table you can use TSQL: ``` using(var conn = new SqlConnection(connString)) using(var cmd = new SqlCommand("INSERT INTO Images VALUES (@id, @date, cast(@image as varbinary(max))", conn)) { c...
[ -0.07595312595367432, -0.11135950684547424, 0.8090285658836365, -0.009594694711267948, -0.06985149532556534, -0.0436188243329525, -0.21896690130233765, -0.12512198090553284, -0.1959269642829895, -0.5879952907562256, -0.168117493391037, 0.4813864231109619, -0.4145784378051758, 0.06121759489...
cmd.ExecuteScalar(); } ``` Inserting data using `SqlFileStream` ------------------------------------ There also exists an approach to get the file data on disk using Win32 directly. This offers you streaming access `SqlFileStream` inherits from `IO.Stream`. Inserting data using win32 can be done with for example th...
[ -0.10527478158473969, -0.09143184870481491, 0.48568934202194214, 0.04577535018324852, 0.1427168846130371, 0.02438945323228836, -0.11093413829803467, -0.20538100600242615, -0.19234347343444824, -0.6689057946205139, -0.10650937259197235, 0.7444549202919006, -0.31642448902130127, 0.0751275345...
{ conn.Open(); using (var transaction = conn.BeginTransaction()) { cmd.Transaction = transaction; cmd.Parameters.AddRange( new[] {
[ -0.39112743735313416, -0.16021715104579926, 0.6155785322189331, -0.25688663125038147, 0.32311883568763733, 0.18325529992580414, 0.1526315063238144, -0.47898435592651367, -0.36593279242515564, -0.46604952216148376, -0.28466761112213135, 0.7001410126686096, -0.3784022331237793, 0.31806409358...
new SqlParameter("id", SqlDbType.UniqueIdentifier).Value = uId, new SqlParameter("date", SqlDbType.DateTime).Value = creationDate, new SqlParameter("image", SqlDbType.VarBinary).Value = null
[ 0.09369699656963348, -0.21971744298934937, 0.47525498270988464, 0.1403008997440338, -0.28510138392448425, 0.27637729048728943, 0.12859226763248444, -0.18796205520629883, -0.12883147597312927, -0.6769265532493591, -0.008409102447330952, 0.0643356591463089, -0.22872713208198547, 0.7558550834...
} ); var path = (string)cmd.ExecuteScalar(); cmd.CommandText = "SELECT GET_FILESTREAM_TRANSACTION_CONTEXT()"; var context = (byte[])cmd.ExecuteScalar();
[ -0.2565338909626007, -0.4840065538883209, 0.6226980686187744, -0.21369749307632446, 0.42298591136932373, 0.06191292405128479, 0.3292010426521301, -0.5028052926063538, -0.2544810175895691, -0.37848272919654846, -0.5421481728553772, 0.7777993679046631, -0.5026448965072632, -0.067913673818111...
using (var stream = new SqlFileStream(path, context, FileAccess.ReadWrite)) { stream.Write(fileContent, 0, fileContent.Length); } transaction.Commit(); } } ``` --- How to model
[ -0.11085812002420425, -0.29643362760543823, 0.317678302526474, 0.22206605970859528, 0.09557358920574188, -0.06405055522918701, 0.06404969841241837, -0.2913193106651306, 0.04670896753668785, -0.5614632368087769, 0.23530244827270508, 0.6675488352775574, -0.4772997796535492, 0.251149326562881...
a Photo storage database ===================================== With the filestream approach to store the images the table is very narrow which is good for performance since many records can be stored per 8K data page. I would use the following model: ``` CREATE TABLE Images ( Id uniqueidentifier ROWGU...
[ 0.4402672052383423, 0.05005236342549324, 0.5766512155532837, 0.2808254659175873, -0.0630837008357048, -0.2789264917373657, -0.16002951562404633, -0.300601065158844, -0.2742331922054291, -0.7234261631965637, 0.18482601642608643, 0.47272005677223206, -0.5562440156936646, 0.3480033874511719, ...
) CREATE TABLE ImageSets ( ImageSet INTEGER NOT NULL PRIMARY KEY, SetName nvarchar(500) NOT NULL, Author INTEGER NOT NULL REFERENCES Users(USerId) ) CREATE TABLE Users ( UserId integer not null primary key, UserName nvarchar(500),
[ -0.2242189645767212, 0.09554729610681534, 0.6845215559005737, 0.07198388129472733, -0.10305920243263245, 0.2925167679786682, 0.024230029433965683, -0.24616950750350952, -0.28314322233200073, -0.7725037932395935, -0.3087839186191559, 0.27663347125053406, -0.4472065567970276, 0.1512567996978...