_id
stringlengths
2
6
text
stringlengths
4
46k
title
stringclasses
1 value
d15701
I haven't read all the details of the forum post you're referring to, but i'm sure you need to know a few things about data binding before you can start using it. * *The target of a data binding is a dependency property *A dependency property has to be declared in a class that is derived from DependencyObject (at l...
d15702
date in PHP accepts 2 parameters. The first is the format you want the date to be displayed in, and the second is a unix timestamp. What you would be better of using is the DateTime class. Then you can get the timezone like this: echo (new \DateTime('2019-01-17T10:00:00-05:00'))->format('P');
d15703
If you already created the mask, you may be able to simplify the rest of it into one command like this... convert in.png in2.png in3.png null: ^ -matte mask.png -compose dstin -layers composite +append result.png That would read in the three input images and do the mask composite on each of them all at the same time...
d15704
You may use searchsortedlast with broadcasting: julia> x = [0.2, 6.4, 3.0, 1.6] 4-element Array{Float64,1}: 0.2 6.4 3.0 1.6 julia> bins = [0.0, 1.0, 2.5, 4.0, 10.0] 5-element Array{Float64,1}: 0.0 1.0 2.5 4.0 10.0 julia> searchsortedlast.(Ref(bins), x) 4-element Array{Int64,1}: 1 4 3 2
d15705
Query the created question object. As a side effect, you can test that the question was created. ... q = Question.query.filter_by(title='What about somestuff in Flask?').first() self.assertRedirects(response, '/questions/%d/' % q.id)
d15706
Alright, looks like I can use @Bindable in a Hibernate @Entity!! Misha
d15707
you can define a system varible when starting tomcat. and access it from your library. for example inside your catalina.bat(on windows)/setenv.sh(linux) windows set JAVA_OPTS=%JAVA_OPTS% -Dconfig.path=%CATALINA_HOME%/{path to conf file} linux JAVA_OPTS="$JAVA_OPTS -Dconfig.path=$CATALINA_HOME/{path to conf file}" th...
d15708
I think what you're actually looking for is: @Html.ValidationSummary() A: I would go with @Html.ValidationSummary() if possible A: Check out Custom ValidationSummary template Asp.net MVC 3. I think it would be best for your situation if you had complete control over how the validation is rendered. You could easil...
d15709
You need minor tweaking in your code: change: bottom: TabBar( tabs: _tabs, ), ), body: TabBarView( children: _tabBarView, ), to bottom: TabBar( tabs: _tabs.toList(), // Creates a [List] containing the elements of this [Iterable]. ), ...
d15710
See this example: var query = from p in Pets select p; if (OwnerID != null) query = query.Where(x => x.OwnerID == OwnerID); if (AnotherID != null) query = query.Where(x => x.AnotherID == AnotherID); if (TypeID != null) query = query.Where(x => x.TypeID == TypeID); Hope this help you
d15711
You can't; not with this data structure. You have a few options: * *iterate through everything, but abort this iteration at the top if it doesn't match your required state. For example: for (Card card : deck) { if (card.getRank() != Rank.ACE) continue; /* code to deal with aces here */ } *You use stream AP...
d15712
I got the same crash log.And my reason is the view controller is released but the UITextField.delegate is not setting nil. So you can set UITextField.delegate = nil in dealloc of the view controller.
d15713
I managed to solve the issue myself. I still cannot fully explain cause and effect here, but this is what I did: I removed crossorigin="anonymous" from the html's img element. This will at least make sure that the image is always loaded. The color calculation part I solved by basically rewriting its logic: var imgSrc =...
d15714
Try this, firstSpinner.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub string selectedValue = arg0.get...
d15715
Here's one SnmpSharpNet. More can be found here. A: I use SharpSnmpLib. It works very well for SNMPv2 and is pretty easy to understand
d15716
float((m_df.ix[:,1:1]).values) For pandas dataframes, type casting works when done on the values, rather than the dataframe.
d15717
You just setState in constructor. If you want to make a call you can put it in componentWillMount() or componentDidMount() import React, { Component } from 'react'; import './App.css'; //Libraries import axios from 'axios'; //Components import SearchBar from './Components/search-bar'; class App extends Component { ...
d15718
Try this var duplicates = list.GroupBy(a => a).SelectMany(ab => ab.Skip(1).Take(1)).ToList(); A: A simple approach is using Enumerable.GroupBy: var dups = list.GroupBy(s => s) .Where(g => g.Count() > 1) .Select(g => g.Key); A: List<string> list = new List<string>() { "a", "a", "b", "b"...
d15719
Here is the entry from the manifest file from one of the VB6 apps I maintain: <assemblyIdentity name="name of application" processorArchitecture="X86" type="win32" version="a.b.c.d" /> ... <file name="tabctl32.ocx"> <typelib tlbid="{BDC217C8-ED16-11CD-956C-0000C04E4C0A}" version="1.1" flags="control,hasdiskimage" ...
d15720
if you're using nuxt.js (which I suppose you do since you have the tag on your question), it's pretty easy, just add the following in your nuxt.config.js: vuetify: { defaultAssets: false, treeShake: true, icons: { iconfont: 'mdiSvg', // --> this should be enough // sideNote: you can also define custom v...
d15721
you can download the missing file from the link below https://www.dropbox.com/s/au2irnctslcpjih/libz.dylib and paste it in your iOS Simulator folder. I hope it will work .
d15722
Docotic.Pdf library can be used for your task. Please see my answer for similar question. Disclaimer: I work for the company that develops Docotic.Pdf library. A: 1) Create your own PDF "parser": http://www.quick-pdf.com/pdf-specification.htm Probably could be minimal if you just need text data and not any of the for...
d15723
GenPass.replace(GenPass[Pos],number) will replace every occurrence of the character at GenPass[Pos] with the value of number. You need to make sure you replace one character at a time. A: Create a list of all chars and a list with all nums, then just pick one by using list.pop(randint(0, len(list) - 1), you will alway...
d15724
Solution from @nik will work only for bash. For sh will work: before_script: - variableName=... - export wantedValue=$( eval echo \$$variableName ) A: We found a solution using indirect expansion (bash feature): before_script: - variableName=${GITLAB_USER_ID}_CI_K8S_PROJECT - export wantedValue=${!variableName}...
d15725
There is no convenient way to do this in Access without using code to iterate over the returned rows and build the string yourself. Here is some code that will help you do this: Public Function ListOf(sSQL As String, Optional sSeparator As String = ", ") As String Dim sResults As String Dim rs As DAO.Recordset ...
d15726
Use the anyString() argument matcher: when(iplayer.capture(Mockito.anyString())).thenReturn(true);
d15727
Right now, the only way is via a global option, MvcOptions.AllowEmptyInputInBodyModelBinding. It defaults to false, so you just need to do: services.AddControllers(o => { o.AllowEmptyInputInBodyModelBinding = true; }); A: There is now an easier way (since 5.0-preview7) You can now achieve this per action method, ...
d15728
Using dplyr, we can do this after converting the 'MES_ZOO' column to character class as the zoo class is not supported within the mutate (using dplyr_0.4.1.9000). We group by 'FILIAL_CODE', get the lead of columns MES_ZOO to DEVOLUCIONES using mutate_each, change the column names and left_join with the original datase...
d15729
I really don't know why you said "I can't just change view frames". Of course you can! The approach I always take to this scenario (where your view's height is variable) is to declare a yOffset property and based on this I place my content at the right y position. @property (nonatomic, assign) int yOffset; Then insid...
d15730
Yes. You can do this pretty easily with Twisted. Just have one of the peers act like a server and the other one act like a client. In fact, the twisted tutorial will get you most of the way there. The only problem you're likely to run into is firewalls. Most people run their home machines behind SNAT routers, which mak...
d15731
Your query is definitively far from being optimized. Try this instead: seismic2DSurvey.EndsAndBends = winPicsDbContext.Locations .Where(t => t.surveyId = seismic2DSurvey.Id && (t.IsBend || (t.IsEnd.HasValue && t.IsEnd.Value))).OrderBy(t => t.TraceNumber).ToList(); seismic2DSurvey.TraceCount = locations.Count(); se...
d15732
After reading the Quirksmode article on the subject, I realized that the problem was exactly what was being described there - the function was being referred instead of copied. From what I gathered, it's impossible to have inline JS work like I wanted for multiple instances on a single page. My solution was to extract ...
d15733
Ok, I'm finally done with it. I am a fool, really. In the Manifest.mf, section "Import-Package", don't forgot to add android.content It now works perfectly ;)
d15734
I ended up using inheritance to fix my issue. Although I have objects of many types, I created a "baseObject" class that contains the fields I needed for this to be successful. I was then able to use the following: for obj in objectStack{ let obj2 = obj as! baseObject fieldArrays[objectType]!.append(obj2.name...
d15735
@addy.first.street should work, as it is list of Adress classes containing only one member. For displaying each street for more adresses in list: @addy.each do |address| puts address.street end or list_of_streets = @addy.map { |address| address.street } Edit: When you have problem identifying what class you have, a...
d15736
found a solution. The tricky bit was to get the bookmarklet to see inside an iframe! see this link: How to pick element inside iframe using document.getElementById so to manage the zoom in the iframe list this is the working example. In the link above I developed this further to make it a numbered list but the code i...
d15737
Don't set the src attribute until the user has clicked on that element. Here is an example: http://codepen.io/tevko/pen/raQMjP
d15738
Save yourself the trouble of using a regex where you don't need one and just use: name := url[strings.LastIndex(url, "/")+1:] Or if you are not sure that the url is a valid github url: i := strings.LastIndex(url, "/") if i != -1 { // Do some error handling here } name := url[i+1:] A: I am not that much familiar ...
d15739
You can use dryRun for this - or in UI just type SELECT * FROM mytable$20180701 and see in Validator how much bytes will be processed - this is the size of the table
d15740
The problem is that Typescript will infer config to be of type { headers: { 'X-Requested-With': string; 'Content-Type': string; 'Host-Header': string; }; responseType: string; } Typescript does not know that you are trying to create a config object for Axios. You can explicitly type...
d15741
You're going to need to be more specific -- the way the question is now it's basically impossible to determine what you're after. Do you need to transfer a file from a Windows Mobile handheld to a Windows PC? Over what type of connection (are they on the same 802.11 network) ? You need more details or no one will be...
d15742
Here's the code for automatic granting the SYSTEM_ALERT_WINDOW permission to the package. To run this code, your Android application must be system (signed by platform keys). This method is based on the following Android source code files: AppOpsManager.java and DrawOverlayDetails.java, see the method DrawOverlayDetail...
d15743
use regexp_extract(col, r"&q;Stockcode&q;:([^/$]*?),&q;.*") if applied to sample data in your question - output is
d15744
Get the list with document.querySelector('#list') and the first li by adding .querySelectorAll('li')[0], then find inputs inside. document.addEventListener('DOMContentLoaded', () => { document.querySelector('#delete').addEventListener("click", function deletes(){ let li = document.querySelector('#list').q...
d15745
Scipy's curve_fit() uses iterations to search for optimal parameters. If the number of iterations exceeds the default number of 800, but the optimal parameters are still not found, then this error will be raised. Optimal parameters not found: Number of calls to function has reached maxfev = 800 You can pro...
d15746
Make sure your database inside App_Data folder on your root application. and change the connection string to this one <add name="ConnectionStringName" providerName="System.Data.SqlServerCe.4.0" connectionString="Data Source=\KeywordsDB.sdf;Connection Timeout=30" /> things you need to concern is you are using S...
d15747
Hope you want this. Thanks // handle links with @href started with '#' only $(document).on('click', 'a[href^="#"]', function(e) { // target element id var id = $(this).attr('href'); // target element var $id = $(id); if ($id.length === 0) { return; } // prevent standar...
d15748
This code saves the path to SQLScripts into %SQLSCRIPTSPATH% variable, and it works on WinXP: DIR SQLScripts /B /P /S>tmp.txt for /f "delims=" %%a in (tmp.txt) do set SQLSCRIPTSPATH=%%a del tmp.txt EDIT: Better solution (without using a temporary file) suggested by Joe: for /f "tokens=*" %%i in ('DIR SqlScripts /B /P ...
d15749
You have to run the image with the -p option like: docker run -p 80:80 <image name> Expose is only working for internal docker image communication. -p then maps the host port to the container port: -p <host_port>:<container_port>
d15750
Ok... So just for information. Solution (workaround) is: When logging in (entering the password), select the cog and change from: Standard (Wayland display server) to Classic (X11 display server) then the last selected correct resolution will automatically be loaded. This option will also be remembered after reboot (C...
d15751
Actually, in OpenCV there is a specific way to do that. You can write an object in an XML file as follow: CvFileStorage* storage = cvOpenFileStorage("globalHistogram.xml", 0, CV_STORAGE_WRITE); cvWrite(storage, "histogram", global_histogram); and read is as such: CvHistogram* global_histogram; CvFileStorage* sto...
d15752
The issue is that you're using the actions-on-google library for fulfillment, which only creates results that are valid on the Google Assistant. If you want to send back a reply that is valid for other Dialogflow integrations, you will need to use the dialogflow-fulfillment library.
d15753
I have a quick guess that I'll try to flesh out if I get time today. I suspect that the Forms App was built expecting to need to find any custom ddm-type modules and display them in the UI for selection. The Structures JSP is probably not updated to automatically expect to need to to find new types. So, I'm going to gu...
d15754
You have 4 arguments in your render of which 2 is context. It needs only one dictionary with context or you can make a context dictionary variable and pass it as argument in render. Try this: from django.shortcuts import render, get_object_or_404 from CGI.models import tank_system, ambient def index(request): tan...
d15755
Try s.ToString().Replace(@"\""", "\""). The @ tells C# to interpret the string literally and not treat \ as an escape character. "\"" as the second argument uses \ as an escape character to escape the double quotes. You also don't need to call ToString() if s is already of type string. Last but not least, don't forget ...
d15756
You can achieve it using ngFor with index. Live example: https://stackblitz.com/edit/angular-b5qvwy Some code: Basic HTML <h1>{{list[i].name}}</h1> <div (click)="prev()"><</div> <div (click)="next()">></div> Basic TS code export class AppComponent { list = [ { name: "Jhon" }, ...
d15757
You should not run animation off of the UI thread ("main" thread) - you should load your content in another thread by using a Loader (or something similar) and play the animation on the UI thread. That's what it's for. Here are official thread guidelines: Do not block the UI thread Do not access the Android UI toolkit...
d15758
Because your else case says: unique [] = [] unique (x:xs) = if (fst x) == (snd x) then unique (xs) else x:[] It thus says if fst x is not equal to snd x, then we return x : [] (or shorter [x]), and we are done. So it does not perform recursion on the rest of the list. We can solve this by adding recursion on the rest o...
d15759
Do: $(document).ready(function() { $("input[type='file']").blur(function(){ var path = $(this).val(); alert(path); $.ajax({ type: "GET", url: path, dataType: "xml", success: function(response) { parseXml(response); } }); }); }); function parseXml...
d15760
Traffic is only routed within the cluster by default, so if the application on C is not part of the cluster, then ingress and egress won't be possible between the A/B nodes and C. This is all controlled by application's service configuration. To route ingress and egress traffic from/to outside the cluster, you'll need ...
d15761
In your code: try with n=10000 and you'll see more of a difference (a factor of almost 10 on my machine). These things related with allocation are most noticeable when the size of your variable is large. In that case it's more difficult for Matlab to dynamically allocate memory for that variable. To reduce the number ...
d15762
Ransack uses a predicate added on to the end of the field you're searching for to indicate how to search for it. If you have an attribute of :state on your model, you could search for states that match to 'expired' or 'deleted' using form.select :state_match, where the _match says to match records with state of whateve...
d15763
The Sinatra documentation on routes is pretty thorough. Assuming you're just trying to call a class method of Jobs::last, and that the method returns something stringifyable, then: get '/most-recent-job' do Jobs.last end should get it done. If that's insufficient for your use case, you'll have to expand your questio...
d15764
You need to create the database and the sde login manually using e.g. pgAdmin, and grant the rds_superuser group role to the sde login. Also create a schema named sde in your database, and make the sde login the owner of that schema. Then you can create a .sde database connection in ArcCatalog using the sde login and, ...
d15765
Is it even possible to set a Date object with a different timezone? No, it's not possible. As its javadoc describes, all the java.util.Date contains is just the epoch time which is always the amount of seconds relative to 1 january 1970 UTC/GMT. The Date doesn't contain other information. To format it using a timezone...
d15766
I took a look at the src and I see that the PhoneGap.exec calls in analytics.js does not match the plugin name. You have two ways to fix this. * *In plugins.xml make the plugin line: <plugin name="GoogleAnalyticsTracker" value="com.phonegap.plugins.analytics.GoogleAnalyticsTracker"/> *Or in analytics.js replace all...
d15767
You forgot to wrap your React App within BrowserRouter or some router. Go to index.js in src folder. Wrap it like this. <BrowserRouter> <App /> </BrowserRouter> Then, add some Route. For example, like this. <BrowserRouter> <Routes> <Route element={<Home/>} path={"/"} /> <Route element=...
d15768
print(time_convert(time_lapsed)) Is your problem. The tine_convert method doesn't return anything. So by encapsulating the function in a print function it just prints none. Try returning a string in the end of your method like: Return "test"
d15769
You are not drawing your content relative to canvas but to screen which could result in a very different offset. If your canvas is lets say 200 pixels wide and high and your screen is 1920x1080 then half of that would draw the clock from center point 960, 540, ie. way outside the limits of the canvas of (here) 200x200....
d15770
You should create a different server handler for each item, with each one pointing to a different callback function.
d15771
Add two lines before tflite_model = converter.convert() in save_tflite() function like this converter.experimental_enable_resource_variables = True converter.experimental_new_converter = True tflite_model = converter.convert()
d15772
You can just try some javaScript to prevent the form submission if those fields fails to fulfill that condition. Please check my demo. **Note: It's just a demo. That's why didn't put any authentication. window.onload = function() { let submit = document.querySelector("#submit"); function validateAge(m...
d15773
Python 3 now exposes the methods to directly set the affinity >>> import os >>> os.sched_getaffinity(0) {0, 1, 2, 3} >>> os.sched_setaffinity(0, {1, 3}) >>> os.sched_getaffinity(0) {1, 3} >>> x = {i for i in range(10)} >>> x {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} >>> os.sched_setaffinity(0, x) >>> os.sched_getaffinity(0) {0, 1...
d15774
The problem is that the OnCreateView() method of the fragment is called after the setTimer() is called. An easy way to solve this is to first call fragment.setTimerValue(value) when you create the fragment. void setTimerValue(int value){ this.timerValue = value; } Then at the end of OnCreateView() method do: OnCre...
d15775
Is your database set to use uft8_unicode_ci charset? A: Solved: I had to change the my.cnf file my MySQL [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] collation-server = utf8_unicode_ci init-connect='SET NAMES utf8' character-set-server = utf8
d15776
You have the lot of inefficiences in code that is detracting from an issue at hand. Ex: jsonDump = json.dumps(jsonData) actualJson = json.loads(jsonDump) What is the point? To equal just as: actualJson = jsonData Or even: actualJson = jsonData.copy() Next: finalObject = {} finalObject['CompanyId'] = actualJs...
d15777
var css_shake={ right: '225px', left: 'auto', position: 'fixed', bottom:'50px' } jQuery.fn.shake = function() { this.each(function(i) { jQuery(this).css(css_shake); jQuery(this).animate({ left: -25 }, 10).animate({ left: 0 }, 50).animate({ left: 25 }, 10).animate({ left: 0 }, 50); ...
d15778
From what I can see you are already converting it to a JSON with var obj = JSON.parse(cont1); So you already have a JSON, it's just that how you're printing it is wrong. To it with a comma instead of +. console.log('data as json', obj) The + is doing a string concatenation, and it's attempting to concatenate a string ...
d15779
in your component personalInfoForm=new formGroup({ firstname:new FormControl('',[Validators.required]) }) your HTML <form [formGroup]="personalInfoForm" novalidate [ngClass]="{submitted: formSumitAttempt}"> <div class="row"> <div class="col-lg-6"> <label for="firstName" class="userID control-label">...
d15780
I figured out the issue. You need to add <ion-overlay></ion-overlay> to your app.html. I saw that no where in the documentation.
d15781
Set navigationController?.navigationBar.isTranslucent = false. You can also achieve this by unchecking Translucent from storyboard. A: Change navigation bar to Opaque instead of Translucent. Swift self.navigationController?.navigationBar.isTranslucent = true Objective-C [[UINavigationBar appearance] setTranslucent:Y...
d15782
You can use the aggregate function MAX in having: select client.name from client inner join stayed on client.client_id = stayed.client_id inner join room on stayed.room_id= room.room_id Group by name having MAX(room.price) < 5000 A: I recommend not exists for this: select c.name from client c where not exists (select...
d15783
If forgot to use the (SELECT ATTRIBUTES_DE_AT FROM DUAL) subquery inside the XMLTYPE... SELECT DISTINCT P.SKU, SUBSTR(X.ATTRIBUTENAME, 14, 3) ATTRIBUTECODE, X.ATTRIBUTEVALUE FROM PRODUCT@ISPSTAG2 P, XMLTABLE('/attrs/attr' PASSING XMLTYPE(REGEXP_REPLACE(**(SELECT ATTRIBUTES_DE_AT FROM DUAL)**, '<attr name="longDescr...
d15784
You can't really do anything -- I guess Isilon's SMB implementation doesn't support certain things (that would've preserved timestamps). I simply added FlushFileBuffers() before SetFileInformationByHandle() and made sure there are no related race conditions in my code.
d15785
You can send invites between android and iOS. They are linked using the developer console (console.developers.google.com). Both the android app and the iOS app need to be in the same console project. If there is only one of each, then when sending across platforms it's unambiguous which to choose and you can just send ...
d15786
Perhaps "export option" instead of "export searchBar". A: Try this code: #!/bin/bash -x func() { echo " Choose 1 - Option 1 2 - Option 2 " echo -n " Enter selection: " read select case $select in 1 ) echo " Option 1 chosen" OPTION=one export OPTION ./gen...
d15787
To get two types of access you either need to combine two containers... or reuse a library that combines containers for you. Boost.MultiIndex was invented for precisely this kind of needs. The basics page shows an example that has employees accessible by id (unique) and sorted by name (non-unique), which is pretty much...
d15788
Due to the \, make emits the recipe as a single line. This confuses the shell. Try this instead, using ; in place of the line terminator: for i in a.h b.h ; \ do \ echo $i ; \ cp $i somedir ; \ done
d15789
ratchet freak is right, it is a shallow copy. You can see the source to the dup function in dmd2/src/druntime/src/rt/lifetime.d. The function is called _adDupT. It is a pretty short function where the main work is a call to memcpy(). Above the function, you can see a representation of an array: struct { size_t length; ...
d15790
Your code will have bad performance if there will be many records in master detail table. Because you will have masterRecordCount * DetailRecordCount nested loop. So it will be better if you group and join in one query var calculatedlist = from I in _entities.Investments join IL in _entities.Investment_Line...
d15791
At some point someone has changed your code from making a POST request to making a GET. GET puts all the data into the URL instead of putting it in the request body. URLs have a length limit. Go back to using POST and this problem will go away. Refer to the documentation for your HTTP client library to find out how to ...
d15792
I think you just want conditional aggregation: select week, count(*) as total, sum(case when pp = 'T' then 1 else 0 end) as num_pp, sum(case when sen = 'T' then 1 else 0 end) as num_sen from t group by week; A: In powerquery, something like this let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Cont...
d15793
I would suggest in stead of adding the array list after you clear you instead do this @Override protected void publishResults(CharSequence constraint, FilterResults results) { filteredShoppingList = (ArrayList<ShoppingListModel>)filterResults.values; if (filterResults.count > 0) { ...
d15794
The body has: min-height: 2000px; that's why there is extra space..
d15795
I'd like to generate the result like this: from collections import Counter age = [1,1,1,1,1,1,1,1,1,1.1,1.1,1.1,1.1,1.1,1.1,1.1,1.2,1.2,1.2] c = Counter(age) result = [[k]*v for k,v in c.items()] print(result) # Result would be: # [[1, 1, 1, 1, 1, 1, 1, 1, 1], [1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1], [1.2, 1.2, 1.2]] Lin...
d15796
For caching data I would stick it in a file in IsolatedStorage. It is a little more work, but you can write a simple enough wrapper around it. It is conceivable that IsolatedStorageSettings.ApplicationSettings will one day be synced between devices using SkyDrive, this is the direction Microsoft are taking with Windows...
d15797
Our friend @AngocA seems to check into SO often but hasn't been checking this dangling question even though he did something to close it. Let's at least put his answer in here so folk know it's CLOSED by user. :) Courtesy of tonight's Point Pimp. :-D "The problem was in another db2cmd session where there was an inf...
d15798
-2 is getting converted to unsigned integer. This will be equal to UINT_MAX - 1, which is definitely greater than 2. Hence, the condition fails and -1 is printed.
d15799
just make vbo of points and then ... glVertexAttribPointer(.., 1, GL_FLOAT, GL_FALSE, 0, (void*)0); glDrawArrays(GL_POINTS,0,.. ); Use math you have to assign each. But it's not so easy. I think it can be done with deploy of second pair of shaders /vao. OpenGL multiple draw calls with unique shaders gives blank sc...
d15800
I found I can eliminate this problem simply by calling myPropertyGrid.ExpandAll(TRUE) at the end of the code where I initialize the property grid (InitPropertyGrid() for me). This seems to force all the properties to expand.