w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Getting Material Type & Changing to New Material
Not that way i am sure :) you can easy get it work ... :) see example one way to do it: http://forums.bukkit.org/threads/solved-checking-sign-text.57905/ Enjoy it...

Categories : Java

clickable bootstrap-datepicker icon with angular directive
See good plugin from AngularStrap that will solve your problem: link. JS .config(function($datepickerProvider) { angular.extend($datepickerProvider.defaults, { dateFormat: 'dd/MM/yyyy', startWeek: 1 }); }) HTML <input type="text" class="form-control" ng-model="selectedDateAsNumber" data-date-format="yyyy-MM-dd" data-date-type="number" data-min-date="02/10/86" data-max-date="today" data-autoclose="1" name="date2" bs-datepicker> See Demo Plunker And this is their main page

Categories : Twitter

how can i using icon-user & icon-lock bootstrap css framwork in a form that in textfield to show the icon
Try it <div class=" container"> <div class="hero-unit clearfix"> <div class="pull-right"> <form class="well"> <label>Username</label> <div class="input-prepend"> <span class="add-on"><i class="icon-user"></i></span> <input type="text" placeholder="Type your username"> </div> <label>Password</label> <div class="input-prepend"> <span class="add-on"><i class="icon-lock"></i></span> <input type="password" placeholder="Type your password"> </div> <label class="checkbox"> <input type="checkbox">Remember me </label> <button type="submit" class="btn

Categories : HTML

Multiple inserts to temp table followed by single insert to material table OR multiple inserts straight to material table
Analyzing the execution plan and running tests is always your best bet. Temp tables have their own overhead, so it really depends on a lot of factors. Take a look at understanding execution plans and INSERT performance between temp tables and a table variable for some background info.

Categories : SQL

Change application taskbar icon at run time(ignore shortcut icon)
Shortcuts have nothing to do with how the application icon appears on the taskbar, a shortcut only points to the actual executable that has the icon embedded as a resource. Your problem could be the Windows Icon Cache. This is a common scenario where the Icon Cache isn't updated properly. You should rebuild/refresh your icon cache, then you should see the currently loaded application icon appear on the taskbar, and you can then use the Application.Icon.Load... to swap the icons between modes. It could also be just due to your taskbar options. If you have your taskbar set to combine both Icon + Label then the icon does not change. Make sure that the option is set to don't combine or combine only if taskbar is full.

Categories : Delphi

jQuery Mobile data-icon=bars displaying as plus icon when using Doctype
This is just a typo. Replace data-icon="Bars" with data-icon="bars" And your'e good to go. You have to follow the exact case when it comes to images. The full set can be found here : http://api.jquerymobile.com/icons/ Here's a demo : http://jsfiddle.net/hungerpain/cpRh2/1/

Categories : Jquery

Adding a icon on the first item on listview: scrolling it, the icon moves randomly
OK, we need to see your full code to get an idea of what's wrong here. Can you show us the actual Java / XML files? First of all, what's the default value for the visibility on your list items? Make sure that the plus button is set to View.GONE by default, and that the list items are set to View.VISIBLE. Secondly, are you duplicating the same view for each list item? Does that mean that all imgicons have the same ID? Maybe you should programmatically insert the imgicon into the first list element, and ONLY the first list element.

Categories : Android

Combinging "icon" and "apple-touch-icon" link types
This solution is very promising. Unfortunately, it does not work. I have just tried with an iPad Mini, running iOS 7.0.4 and Safari with the following code: <link rel="icon apple-touch-icon" type="image/png" sizes="57x57" href="/apple-touch-icon-57.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="114x114" href="/apple-touch-icon-114.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="72x72" href="/apple-touch-icon-72.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="144x144" href="/apple-touch-icon-144.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="60x60" href="/apple-touch-icon-60.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="120x120" href="/apple-touch-icon-120.png"> <lin

Categories : IOS

'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format'
After Apple launched iOS 8, iPhone 6 and 6 Plus, the app icon sizes and launch image sizes changed; please visit my post for new sizes: Image resolution for new iPhone 6 and 6+, @3x support added? Yes, you need to add a 120x120 high resolution icon. Now, if you want to target only iOS 7, you just need 76 x 76, 120 x 120 and 152 x 152 icon sizes. If you also want to target iOS 6, you’ll need 57 x 57, 72 x 72, 76 x 76, 114 x 114, 120 x 120, 144 x 144 and 152 x 152 icon sizes. Without counting Spotlight and Settings icon if you don’t want the OS to interpolate them! As per the blog post New Metrics for iOS 7 App Icons. UPDATE: As per Apple Guideline App-icon OR Icon and Image Sizes: Icon dimensions (iOS 7 and later) Icon dimensions (iOS 6.1 and earlier) Create differ

Categories : Iphone

Emissive material example in Three.js
Here is an example where not only all the material properties are explored but changes can be made on different material types: Material Explorer

Categories : Three Js

Wrap a material around a cube in Three.js
Typically, with a THREE.CubeGeometry, you can either: (1) Choose a single texture that repeats on each side of the cube, or (2) Have a different texture for each of the six sides You can also use repeat the number of times a texture is displayed on each side. For examples of each of these, check out the source code of the demos at: http://stemkoski.github.io/Three.js/Textures.html and http://stemkoski.github.io/Three.js/Texture-Repeat.html Hope this helps!

Categories : Javascript

How to make my jlabel with icon look like desktop icon?
This is how you can do it, JLabel l=new JLabel("My Documents"); l.setIcon(new ImageIcon("mydocuments.png")); l.setHorizontalTextPosition(SwingConstants.CENTER); l.setVerticalTextPosition(SwingConstants.BOTTOM); l.addMouseListener(new MouseAdapter(){ public void mouseClicked(MouseEvent me) { if(me.getClickCount()==2) { try { Desktop.getDesktop().open(new File(System.getProperty("user.home")+"\My Documents")); }catch(Exception e){} } } });

Categories : Java

Shrink material faces in threejs
See three.js/examples/js/modifiers/ExplodeModifier.js. Once each face has its own unique vertices, you can move each face vertex to a new location. You will likely also want the reset the face centroid, faceNormal, and vertexNormals. If you are using WebGLrenderer, you will have to set geometry.verticesNeedUpdate = true; See the Wiki article How to Update Things with WebGLRenderer.

Categories : Javascript

C++ Final exam study material
Since B is derived from A, every B is an A. So pa can point to an object of type A or any derived type. But the type of object doesn't change, so b is still of type B and behaves as such. The only restriction is that, since it's being referenced by a pointer to A, you can only reference the methods and member variables that are declared in the base class A. For an explanation of why C++ works this way, look for a discussion on vtables.

Categories : C++

Ink 'n Paint Material does not work with ThreeJS?
First of all, Number 3) will NEVER work with OBJ, because obj will not export the ink shader from 3dsMax. And just to be clear, i don't think there is ANY way you can export the 3dsMax Shader. Then, I don't understand what 2) is about. What do you want to achieve anyway? Do you want to set an object to be transparent? What does this have to do with Ink 'n Paint? Btw. i am not sure if transparency works for MeshNormalMaterial, i guess it should but Lambert and Phong will definetly work with transparency. The problem is that you do not state what you want to achieve. From 1) it seems you want an outline around an object. For an outline see this example: http://stemkoski.github.io/Three.js/Outline.html or this one as a more advanced example: http://stemkoski.blogspot.de/2013/07/shaders-in-

Categories : Three Js

Physics Material slow down the game
You can add physics to the coins with delay. I mean add physics when coin is near to fall. Also you need to destroy every coin body when you are removing the coin out of the scene. If you are removing only sprite the there will be too many bodies on the scene.

Categories : IOS

Detect if Angular dependencies [angular-route, angular-resource, etc] are loaded for CDN fallback
This is what I use: <script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.5.0/ui-bootstrap.min.js"></script> <script> try { //try to load from cdn //use the name of the angular module here angular.module('ui.bootstrap'); } catch(e) { //error thrown, so the module wasn't loaded from cdn //write into document from local source document.write('<script src="sys/lib/ui-bootstrap.js"></script>'); } </script> angular.module throws an error if there is no such module, which is exactly what we need to know! try/catch is great here.

Categories : Javascript

trouble about working with material of model visual 3d?
If you want to get color of the Brush used to create DiffuseMaterial as a string then you need to first check if it is DiffuseMaterial, as not all materials need to work of Brush, and then you have to check if Brush is SolidColorBrush as only that will support single color. Something like below should work: DiffuseMaterial material = result2.Material as DiffuseMaterial; if (material != null) { string brushColor = null; var brush = material.Brush as SolidColorBrush; if (brush != null) brushColor = brush.Color.ToString(); }

Categories : C#

THREE.js Using MeshPhongMaterial As Particle Material and Setting Size
Try this instead: var geometry = new THREE.TorusGeometry( rad, ringSize, 1, 200, Math.PI * 2); var material = new THREE.MeshPhongMaterial({shading: THREE.SmoothShading, blending: THREE.AdditiveBlending, transparent: true, color: ringColour, ambient: 0x000000, specular: 0xffffff, shininess: 1, vertexColors: false } ); var mesh = new THREE.Mesh( geometry, material ); scene.add( mesh ); var material = new THREE.ParticleBasicMaterial( { size: 1, transparent: true, vertexColors: true } ); var particles = new THREE.ParticleSystem( geometry, material ); scene.add( particles );

Categories : Javascript

Change material or color in mesh face
You are mixing apples and oranges. Do not use both face colors and MeshFaceMaterial simultaneously. First of all, in WebGLRenderer, you can't change the face materialIndex after the mesh has been rendered once. You can change one of the materials in the material array, however. You need to use MeshBasicMaterial for your mesh material, and specify vertexColors: THREE.FaceColors. That way you can control each face color. Be sure to initial each face color so you get the checkerboard pattern. Also set the material color to 0xffffff, otherwise you will see the multiplicative effect you are trying to avoid. three.js r.58

Categories : Javascript

OpenGL Texture override material color
only material color become transparent. Well, you're adding the values, that's what to be expected. You should instead use some blending function like mix (= s*a + d*(1-a) where s and d are material and texture and a is some blending factor) or slerp.

Categories : Opengl

Autodesk Inventor API Material Property Change
You have to find the material and assign it to the component definition. var app =(Application) System.Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application"); var doc = app.ActiveDocument; var partDoc = (PartDocument)doc; var compDef = partDoc.ComponentDefinition; var mass1 = compDef.MassProperties.Mass; var mat = (from Material material in partDoc.Materials where material.Name == "Titan" select material).First(); partDoc.ComponentDefinition.Material = mat; if (mat.StyleLocation == StyleLocationEnum.kLibraryStyleLocation) mat.ConvertToLocal(); var mass2 = compDef.MassProperties.Mass;

Categories : Vb.Net

extending lambert material, opacity not working
You need to separate properties of the material from the material uniforms. You can get your specific example to work like so: var shaders = { mylambert : THREE.ShaderLib[ 'lambert' ] }; var materials = {}; materials.mylambert = function( parameters, myUniforms ) { var material = new THREE.ShaderMaterial( { vertexShader: shaders.mylambert.vertexShader, fragmentShader: shaders.mylambert.fragmentShader, uniforms: THREE.UniformsUtils.merge( [ shaders.mylambert.uniforms, myUniforms ] ), attributes: {} } ); material.setValues( parameters ) return material; }; myProperties = { lights: true, fog: true, transparent: true }; myUniforms = { opacity: { type: "f", value: 0.4 }, }; var material = new materials.mylambert( myProp

Categories : Three Js

Three.js Convert Customer ShaderMaterial to Lambert Material
Ok I think I see what you are after, and I think you may be a little confused. A material may only have one vertex shader, and one fragment shader at a time. Three.js provides some default shaders, like Lambert that render things in lambert shading. That labertoon.js script appears to hack into the Three.js provided Lambert shader and permanently alter it, which means any Lambert material would use this hacked version instead. This is an ugly way to do this. See what the script does yourself, it's not long: http://www.neocomputer.org/projects/donut/three_lambertoon_c.js The fact is combining shaders is tricky. A shader has a single entry point main() and then a very specific sequence of operations. The order of those operations is incredibly important, just as is the order of operat

Categories : Javascript

Can I get some sort of notification from parse.com if a user "flags" certain material from my iOS app?
Look at Parse's Cloud Module Guide. It has instructions on how you can use SendGrid, Mailgun, or Mandrill from cloud code to send an email whenever a new object is saved. You can use this to send yourself an email when a user creates a new "Flag".

Categories : Iphone

Define transparent material in JSON Model format 3.1
You need to set transparent: true and transparency: 0.5. The latter maps to opacity. "materials": [ { "DbgColor" : 15658734, "DbgIndex" : 0, "DbgName" : "dummy", "transparent" : true, "transparency" : 0.5, "colorAmbient" : [ 0.9, 0.1, 0.1 ], "colorDiffuse" : [ 0.1, 0.7, 0.1 ] }], three.js r.60

Categories : Javascript

Is it Possible to to include only php material and skip html text while including a php file?
If you want to use only specific parts of your code, make it modular. Break it down into functions and/or classes. Separate the HTML output from the part that fetches data so you can call both independently. There's no other sane way.

Categories : PHP

Three.js - problems smooth shading a Lambert material on custom geometry
It's because neighboring faces do not share vertices in your model. If you call geometry.mergeVertices() right after you complete the creation of your geometry, and before you call geometry.computeVertexNormals(), then your shading will look smoother. three.js r.58

Categories : Javascript

creating a spherical particle basic material for webgl renderer in threejs
Here's an example that shows how to procedurally create textures for your particles using the WebGLRenderer: http://jsfiddle.net/7yDGy/1/ However, if you wish to use your own texture, simply load whatever texture you want into the map field: var texture = THREE.ImageUtils.loadTexture('/images/my_texture.png'); // Do NOT set this flag. Explanation provided by WestLangley in the comments // texture.needsUpdate=true; var material = new THREE.ParticleBasicMaterial({ // ... map: texture, // add all relevant fields as described in the link above }); // geometry should contain your particle vertices var particle = new THREE.ParticleSystem(geometry, material); scene.add(particle);

Categories : Javascript

Understanding Java reference material; World Wind Network Link
You've asked several questions and no one else is jumping in, so I'll do what I can. There are "protected" fields for use by classes which extend this class -- that is the level at which a protected field would be visible. The fact that it's protected indicates that they DO expect users to access it, but from a class extending this one. I cannot, unfortunately, tell you what's wrong with your call. I find it curious that, although this is not working, you state that you have "verified that that link is appropriate" -- how did you verify that? I'm not saying you're wrong, I just don't know. The way to find out what a "URI reference" means is to search further in the KML doc and/or put it into Google.

Categories : Java

Plane material with png alpha transparency from json export mesh is not working
the problem was in the image that I used as a texture. The original image had the following dimensions: 1999 × 7141. Apparently, for some unknown reason three.js can't use such a great texture. i've reduced the size to 1000 × 3572, and its ok now.

Categories : Javascript

How to change filter icon color or filter icon when column is filtered
This is supported out-of-the-box. Take a closer look at the demos when you filter change the theme if needed. Or modify the CSS of a particular theme to make it more clearly visible.

Categories : Kendo Ui

Why when i close my application from the icon tray sometimes the icon is left on even after the application is closed?
You can either set notifyIcon1.Visible = false; or notifyIcon.Icon = null; in the form closing event. (from NotifyIcon remains in Tray even after application closing but disappears on Mouse Hover )

Categories : C#

angular-mock.js conflicts with htmlunit? How to test angular application using angular-mock.js in maven-jasmine
In the CHROME browser version the error occurs when angular tries to load JQLite a api-compatible subset of the jQuery library that allows angular to manipulate the DOM. I was able to fix the issue by downloading uncompressed versions of jQuery (v1.10.2), angular (v1.0.7), and angular-mocks (v1.0.7). I added the following to the configuration in the jasmine-maven-plugin. <preloadSources> <preloadSource>${angular-test-deps}/jQuery.js</preloadSource> <preloadSource>${angular-test-deps}/angular.js</preloadSource> <preloadSource>${angular-test-deps}/angular-mocks.js</preloadSource> </preloadSources> The angular documentation states that "Real jQuery always takes precedence over jqLite, provided it was loaded before DOMContentLoaded eve

Categories : Unit Testing

Show loading icon whenever the browser loading icon is active
Buffering Case your PHP scripts are causing a slow load you must put' em in buffer. So, when the load is finished you can free this buffer. This isn't so hard to implement. See the PHP output buffering control documentation for this: PHP Output Buffering Control Finished the loading of the buffer You can make like this: http://jsfiddle.net/S9uR9/ $(window).load(function () { //hideLoading(); }); hideLoading = function() { $('.loading').fadeOut(2000, function() { $(".content").fadeIn(1000); }); }; hideLoading(); In your page, try to remove the commented line in $(window).load() function and comment the last line hideLoading();. Detecting browser’s activity I've noticed that some browsers show a loading icon

Categories : PHP

jQuery if valid show icon else show invalid icon
JS if ($('input').hasClass('woocommerce-invalid')) { $('#someDiv').addClass('red-cross'); } else { $('#someDiv').addClass('green-tick'); } CSS .red-cross{ background-image: url('red-cross.png'); } .green-tick{ background-image: url('green-tick.png'); }

Categories : Jquery

How to change a resource icon in a imageview with another resource icon
Try this: ledicon.setImageDrawable(getResources().getDrawable(android.R.drawable.presence_busy)); (When accessing system resouces you have to look them um in android.R not your own.)

Categories : Android

How to prevent angular-ui accordion from toggling when sorted with angular-ui's sortable
After a long time, I've wrapped my head around this again. Obviously not the most elegant solution but it works for now: http://plnkr.co/edit/8J5ZxocNzmcOtNL9mS3R?p=preview If you have any suggestions / corrections, don't hold back. EDIT: based on comments, see the updated Plunker for Chrome: http://plnkr.co/edit/jAY5AtnH5SE2f5aqxRGs?p=preview The main trick is to control the toggle using: <a class="accordion-toggle" ng-click="$parent.isElementDragged() || (isOpen = !isOpen)" accordion-transclude="heading"> {{heading}} </a>

Categories : Angularjs

trying to use angular-ui-bootstrap radiobutton directive with ng-repeat in an angular project
Try this: <button type="button" class="btn" data-ng-repeat="(key, value) in items" ng-model="radioModel" btn-radio="key">{{key}} ({{value.length}})</button> Notice btn-radio="key", just drop {{}} and ''

Categories : Angularjs

Angular ng-click won't fire if angular {{model}} is included as parameter
Found my own answer: within ng-click, there is no need for the {{notation}}. It knows that "item" is an angular data model. Again, not super clear in the Angular documentation. Here is the updated plunker that shows it working and not working.

Categories : Angularjs



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.