Invalid input type tel - html

I am using an input type tel on a label control. It works fine on my local machine but when deployed on server it gives me error as below. Any pointers on what i am missing here.

Your server is using a different (older) version of ASP.NET/.NET Framework. You should either upgrade the runtime if possible or ask the host to do that for you.
Otherwise the only solution for you would be to use a regular input and then enforce the mask with JavaScript.

Related

PowerShell - Information After Each Input

I was wondering if it's possible to receive information after each input (each line) in PowerShell.
I would like to use it afterwards for some custom functions.
If you don't think it's possible, perhaps it would be possible to create custom functions with asterisk (wild card)? E.g. type in computer's name (which always begins the same way) and receive ping to this computer as feedback.
Thanks in advance!

Sikuli Key.CTRL does not work

Using Sikuli IDE 1.0.1 (according to the "About SikuliX" menu).
Ubuntu 14.04.3, 64 bit, virtual server, via tightvnc + Xfce 4.
One day everything just stopped working though we did not change the sources. Server updates (ubuntu software) are off. Combinations like type('a', Key.CTRL) started to type plain 'a' char, not selecting a text (as before).
We even tried to spin up the same instance type, set everything up there, and run agian. And Sikuli failed to type "Ctrl" again!
We also tried to run the script with "-r", skipping IDE. Same thing - no Ctrl.
Can anybody help?
Thanks!
I suppose you should do it as sequential actions (like you actually do on your keyboard):
keyDown(Key.CTRL)
type("a")
keyUp(Key.CTRL)
Alternatively, you can use the KeyModifier.CTRL in the function type
type("a", KeyModifier.CTRL)
If you're using the
type('a', Key.CTRL)
to simulate holding CTRL and pressing the 'a' key, the method you're using has been depricated. It should more properly be
type('a', KeyModifier.CTRL)
as per the documentation.
Try that and see if that will solve your problem. :)

Using cc2530 radio with contiki

I am trying to build a port for Contiki on my lpc1347 board. I have set up the mcu libraries and makefiles, all that is left is to add the radio support.
My goal is to use a cc2530 radio that I have, the problem is i do not know much about this. I see that that there is already a port for c2530, but i want to use cc2530 as a radio, so is it necessary to port Contiki in that too? How should i go about adding my lpc1347 board support for cc2530's contiki files?
Thank you.
The CC2530 is a SoC device with a 8051 MCU. You'll have to program this 8051 processor in order to use the radio. If Contiki is already running on your lpc1347 it is not necessary to port it on the cc2530 too, but you'll have to communicate with this latter in someway (uart, spi, ...) in order to send/receive radio packet and turn on/off the radio.
I suggest you to write a file i.e cpu/lpc1347/dev/cc2530-rf.c and implement a new radio driver using one of the communication interface. Implement each functions require by the structure struct radio_driver which is found in core/dev/radio.h and set the NETSTACK_CONF_RADIO variable to this new radio driver.

How to define variables in phpstorm

In my PHP project I'm using static-file server (ex img.domain.com).
That server path I have is stored in $config table. ($this->config['file_server']).
During developement static server-file is local server (main root).
Problem is that when using it I don't get path suggestions (ctrl+space) eg:
<img src="<?=$this->config['file_server'];?>image.png">
Can I make phpstorm to interprate $this->config['file_server'] as "/" sign?
I've asked the same question on jetbrains forum: http://devnet.jetbrains.com/message/5515452#5515452
Anwser from Andriy Bazanov"
Hi there, You cannot.
The actual inspection is disabled in such
situations on purpose (to avoid false warnings .. since it is unknown
in advance what that path would be). IDE currently does not allow to
provide value or return type for individual array elements anyway On
another hand -- it works just fine if leading "/" is actually present,
i.e. config['file_server'];?>/image.png"> (in such
case path completion works)

How to get all configuration settings from Azure Config file?

I need to get all configuration settings (current role or all roles not matter) from Azure cscfg file. I want to do this because i dont want to get all values one by one via RoleEnvironment.GetConfigurationSettingValue(key) method.
Is there any way to do this?
Regards
The short answer is 'no' the RoleEnvironment does not support getting all the configuration setting values.
A slightly longer answer is that getting configuration settings from the role environment in the current implementation is done through a call to native code. The separation of Windows Azure Application from Windows Azure Configuration and the ability to swap settings on a running application is at the root of this somehow. This is done inside of msshrtmi.dll (which should mean something like Microsoft Shared Runtime Managed Interop). This is the only reference Microsoft.WindowsAzure.ServiceRuntime.dll has apart from standard references to .NET.
Here is the method call to native code (I have not gone further than this):
[MethodImpl(MethodImplOptions.Unmanaged, MethodCodeType=MethodCodeType.Native), SuppressUnmanagedCodeSecurity, DllImport("", EntryPoint="", CallingConvention=CallingConvention.StdCall, SetLastError=true)]
internal static extern unsafe int modopt(IsLong) modopt(CallConvStdcall) RdGetApplicationConfigurationSetting(ushort modopt(IsConst), ushort*);
It might seem like a slightly round-about way of doing it, but if you want to get the configurations for all the roles in a deployment you can use the management api.
Kudu has an API for this.
You get to Kudu like via App Services > Advanced Details > Go
https://{app-service-name}.scm.azurewebsites.net/
or
https://{app-service-name}-{slot-name}.scm.azurewebsites.net/
The Url for the settings API is:
https://{app-service-name}.azurewebsites.net/api/settings or https://{app-service-name}-{slot-name}.scm.azurewebsites.net/