w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Can't log into Tiny Tiny RSS API using Prototype.js
Your curl command sends data in a POST request, whereas the Ajax call uses the GET method. According to the tt-rss API documentation, older versions supported both GET and POST, but now data must be encoded using JSON in HTTP POST data.

Categories : Javascript

tiny scrollbar inside pop up
Initialize the scrollbar() after click() $('#test').click(function(){ $('#dialog').show(); $('#scrollbar1').tinyscrollbar(); $('#overlay').show(); }); [DEMO] --> (http://jsfiddle.net/GknfT/4/)

Categories : Jquery

Tiny Nav Responsive Issue
While looking at your webpage code, I couldn't find the link to the TinyNav script - its not being loaded, it seems. On your scripts, you should add: <script src="tinynav.min.js"></script> Please refer to http://tinynav.viljamis.com for complete instruction.

Categories : Jquery

Tiny editor is not getting post value
You need to post the data from editor with JS: $(document).ready(function(){ $(".submit").click(function(){ editor.post(); }); }); Where .submit is class of submit button

Categories : PHP

How to use Types::Path::Tiny with Moo
There is no reason to have use strict; and use warnings; if you have use Moo; as it does that for you. You also have to give Moo a code reference for the coerce element, not a true value. The way you get that with Type::Tiny is by calling $type->coercion. package MahewinBlogEngine::Common; # not needed with Moo # use strict; # use warnings; use Moo; use Types::Path::Tiny qw/AbsPath/; ... has 'directory' => ( is => 'rw', isa => AbsPath, required => 1, coerce => AbsPath->coercion, ); for( qw'/home ./ ./Documents Documents' ){ use feature 'say'; say $_, " ", MahewinBlogEngine::Common->new( directory => $_ )->directory; } /home /home ./ /home/user ./Documents /home/user/Documents Documents /home/user/Do

Categories : Perl

Using Try::Tiny and $_ to get "the type of error"
So according the Try::Tiny document: Inside the catch block the caught error is stored in $_, while previous value of $@ is still available for use. So this module will set $_ to the error that was caught, so your use looks correct. This is interesting blog post going logic behind the design.

Categories : Perl

Google Maps API + Wax.g + IE = Tiny Tiles
So the problem is that my images were inheriting a style height and width of auto, and Wax.g's getTile method method creates an Image using new Image(256, 256), which writes to height and width attributes of the img itself (img attributes, not inline style). The inline styles took priority over the attributes, so the img was being sized using auto. I fixed this by ensuring the img had a height and width of 256 using inline styling. Wax.g code: // Get a tile element from a coordinate, zoom level, and an ownerDocument. wax.g.connector.prototype.getTile = function(coord, zoom, ownerDocument) { var key = zoom + '/' + coord.x + '/' + coord.y; if (!this.cache[key]) { var img = this.cache[key] = new Image(256, 256); this.cache[key].src = this.getTileUrl(coord, zoom);

Categories : Javascript

How can I draw an image with many tiny modifications?
What exactly do you mean by 'audio meter' show some snapshots of your intended designs. Shows us some code... These are my suggestions- 1) Yes the new data just draws on top of CGLayer unless you release it CGLayerRelease(layer) 2) CGContextStrokePath is an expensive operation. You may want to create a generic line stroke and store them in UIImage. Then reuse the UIImage everytime your datachanges. 3) Simplest solution: use UIProgressView if you just want to show audio levels.

Categories : IOS

Tiny scroll bar auto height
From what i saw in the fiddle, the tinyscrollbar does not update once the height of the accordion is modified on collapse. For this you need to use the update() method of the tinyscrollbar. But the weird thing is, I haven't found a bindable event in the dcaccordion documentation, so that I can inject the update after the animation. I've slightly modified your example to use the accordion from jquery UI and it works fine with that, you can customize that one any way you want. Hope it helps. This is my modified code: $('#accordion-3').accordion({ activate: function (event, ui) { var oScrollbar = $('#scrollbar1'); oScrollbar.tinyscrollbar_update('relative'); }, heightStyle: "content", alwaysOpen: false, active: false, collapsible: true }); modified fiddle here

Categories : Jquery

Why does my long integer change a tiny bit?
This isn't an answer, but it is too long for a comment. MySQL says that the bigint supports values from -9223372036854775808. However, the following code on SQLFiddle: select cast('-753774083758266880' as signed), cast('-753774083758266887' as signed), cast('-9223372036854775807' as signed) Returns: -753774083758266900 -753774083758266900 -9223372036854776000 Perhaps the support for really large values (positive or negative) needs to be qualified. Or, perhaps this is an artifact of how such numbers are printed in the output and has nothing to do with your problem. As a note: It does properly take the difference of these values, so this is perhaps just an output issue.

Categories : Java

Encoding issue using Try::Tiny module
There are several things to consider here. But, firstly, where does Log::Server come from? I can't find it on CPAN. You probably need to either configure that (or, in the worse case, fix it) to be aware of Unicode.

Categories : Perl

Django flatpages with tiny-mce won't work
I think you need to register the new form with django admin. Try replacing your models.py with this: from django.contrib import admin from django import forms from django.contrib.flatpages.admin import FlatPageAdmin, FlatpageForm from django.contrib.flatpages.models import FlatPage from tinymce.widgets import TinyMCE class MyFlatpageForm(FlatpageForm): content = forms.CharField(widget=TinyMCE(attrs={'cols': 80, 'rows':30 })) class MyFlatPageAdmin(FlatPageAdmin): form = MyFlatpageForm admin.site.unregister(FlatPage) admin.site.register(FlatPage, MyFlatPageAdmin) There are a couple of other things that might need to be fixed. The models.py won't be discovered if you don't have "cms" in your installed apps. Also, I think the extension you want is "spellchecker" not "spellcheck"

Categories : Python

Get content of tiny mce with many textareas on page
It is suffiecient to call var contents = new Object(); for (var i = 0; i < tinymce.editors.length; i++) { contents[i] = tinymce.editors[i].getContent(); }

Categories : CSS

Not able to render tiny mce editor in mvc4
I bet that script leads to a 404. Either remove the tilde or use @Url.Content. <script src="/Scripts/tinymce/js/tinymce/tinymce.js"></script> <script> tinymce.init({ selector: "textarea" }); </script> Or <script src="@Url.Content("~/Scripts/tinymce/js/tinymce/tinymce.js")"></script> <script> tinymce.init({ selector: "textarea" }); </script>

Categories : Asp Net Mvc

Tiny MCE4 ignores width
You have to remove the quotes : width: 300, height : 480 like this : http://fiddle.tinymce.com/Nzdaab Wrong : width: "100", height : "480"

Categories : Misc

Tiny Carousel plugin, autostop at last slide
You could stop the carousel from a callback function. In the above example, you could do: $('#slider-main').tinycarousel({ callback: function(element, index){ if (index == 4) { $('#slider-main').tinycarousel_stop(); } } });

Categories : Javascript

reinitializing tiny mce 4 results in a blank editor
This will loop all editor on the page and init each one, but it will give you an idea on how you select which editor the command should be sent to: $(document).ready(function() { for (edId in tinymce.editors) { tinymce.editors[edId].execCommand('mceAddControl', false, edId); } }); You could use something like this for just a specific editor based on element class/ID tinymce.editors[$(".editHover").attr('id')].execCommand('mceAddControl', false, $(".editHover"));

Categories : Ajax

small differences between large or tiny numbers
Matlab is calculating with all the significant figures you give it (up to 16 digits). It is just displaying only the most significant digits. It defaults to format short (or format short e for numbers that are too large to display with format short), which displays 5 significant digits. As @Eitan T noted, format long or format long e will display 15 digits.

Categories : Matlab

is tiny carousel example in jquery moble +phonegap
First I would advise you against using tiny carousel, mainly because it is not responsive and when working with jQuery Mobile you need to use responsive plugins. Your page/app will need to work on a various platforms and it would look bad if plugin can' correctly match page width. To prove my point take a look at a tiny carousel combined with jQuery Mobile: http://jsfiddle.net/Gajotres/wcjUk/ Plus to answer your second question, when ever you use 4rd party plugin you need to include its js and css file. I have found another solution for you. It is called BxSlider and it is responsive, basically it correctly covers page width, in your case header. Here's a working example: http://jsfiddle.net/Gajotres/5wyMh/ I have even put a solution to show/hide header, I know you need it ;) HTML :

Categories : Jquery

Tiny MCE editor display doesn't work in IE9
value = ko.utils.unwrapObservable(valueAccessor()); ed.onInit.add(function(ed) { $element.tinymce().setContent(value, { format: 'raw' }); });

Categories : Javascript

Tiny MCE - Uncaught TypeError: Cannot call method 'on' of null
Use the following Control and Copy TinyMCEEditor.dll to the in folder in your Commerce Manager site. <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditorControl.ascx.cs" Inherits="TinyMCEEditor.EditorControl" %> <script language="javascript" type="text/javascript" src="../../Core/Controls/Editors/tiny_mce/tiny_mce.js"></script> <script src="../../Core/Controls/Editors/tiny_mce/plugins/FileManager/js/jquery-1.4.2.min.js" type="text/javascript"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode: "textareas", theme: "advanced", plugins: "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality

Categories : Javascript

type="mce-text/javascript" gets added in tiny mce editor html
This just happened to me as well. The replacement happens when you go to your editing page, and then hit refresh. I think that what's happening is that on the first page load, script tags are being replaced with type="mce-text/javascript", which should then be stripped out on save. Then on page refresh, this text is inserted by your browser, and then TinyMCE sees that the type is already present, so flags the script tag as not needing cleanup when you save. The only solution I've found is to realise that you shouldn't hit refresh when editing the page. I realise that this isn't a great solution, but at least it should allow you to reproduce the issue.

Categories : Jquery

Tiny MCE Editor: Create preset blocks of text to insert from toolbar
Solution will be to write an own tinymce plugin that will wrap the selected text into pre-elements that can be replaced serverside. The code would be partial the same as the style plugin that ships with tinymce.

Categories : Javascript

Report correct location with carp inside Try::Tiny catch block
In my experiment, this solution only works when the caller comes from a different file. Adding Try::Tiny to the @CARP_NOT variable for the package fixes in this case: #first file use MyPackage; MyPackage::foo(); #second file package MyPackage; use Carp qw(carp cluck); our @CARP_NOT = qw(Try::Tiny); use Try::Tiny; sub foo { carp 'bar1'; cluck 'bar2'; try{ carp 'bar3' }catch { cluck $_; } } 1; It prints the following: bar1 at myFile.t line 2. bar2 at MyPackage.pm line 8. MyPackage::foo() called at myFile.t line 2 bar3 at myFile.t line 2.

Categories : Perl

Make a tiny arrow move left to right as user scrolls up and down page
This is basically all the jQuery code you need $(window).scroll(function(){ $('.arrow').css('margin-left',$(this).scrollTop() / 4 + 'px'); }); Bind to the window scroll event and change the position of the arrow accordingly To make the arrow always visible you'd need to use position:fixed; Demo fiddle

Categories : Javascript

Default login credentials for Virtuoso Conductor
According to their documentation, you can log in initially as: username: dba password: dba Edit: i also found that there are two different default users setup: There are two system users of immediate importance: dba -- the relational data administrative account dav --the WebDAV adminstrative account. By default each of these accounts has its password set the same as its username. It is strongly advised that you change these as soon as possible for obvious security reasons. http://ods.openlinksw.com/wiki/main/Main/VOSUbuntuNotes#Using%20Virtuoso

Categories : Misc

How is data typically reloaded/displayed on a device when only a tiny amount of data changes after updating the database? (Conceptually)
This is ridiculously trivial. You update your local database and send off the remote update at the same time. You use the remote response to mark your local record as synched or try updating again later.

Categories : IOS

Scroll inside dynamic and invisible div (TINY box) to an element inside
Assuming I'm understanding you right, you might be able to use the following jquery code within the function that opens the created box and after the div has been added to DOM: $('html, body').animate({ scrollTop: $("#"+d.name).offset().top }, 1000); This will scroll to the top of the element with the id stored in the variable d.name,

Categories : Javascript

scrapy: A tiny "spider" in a spider?
You should instantiate a new Request in the callback and pass your item in the meta dict: from scrapy.http import Request from scrapy.item import Item, Field from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector class EpinionsTestItem(Item): title = Field() star = Field() date = Field() review = Field() class MySpider(BaseSpider): name = "epinions" allow_domains = ["epinions.com"] start_urls = ['http://www.epinions.com/reviews/samsung-galaxy-note-16-gb-cell-phone/pa_~1'] def parse(self, response): hxs = HtmlXPathSelector(response) sites = hxs.select('//div[@class="review_info"]') for sites in sites: item = EpinionsTestItem() item["title"] = sites.select('h2/a/text()').extract

Categories : Python

If I cancel Login Dialog, login error occurs: Unauthorized Access is denied due to invalid credentials
HTTP code 401 means "unauthorized". When the browser receives this error code, it assumes it's because the user needs to login. The browser displays a login dialog, and then tries again with the login details given. This is exactly what's supposed to happen. If what you're wanting is to simply refuse the request, you're after HTTP code 403, "forbidden". However, I'm not clear on why you're actually trying to achieve here. If your own server code is returning an HTTP 302 (a redirect), why are you trying to convert that to an HTTP 401/403/whatever? If you don't want to perform redirects for some reason, don't issue the redirect in the first place!

Categories : C#

Preventing Multiple Login with same login credentials
Simply have a field in your database that has text that says online or offline for each user, according to whether they are logged in or not. So when someone tries to log in with that username, check the database if the field says online for that given user on submit. If the field says online, don't allow log in. Otherwise permit it. without using a database you can store if a user is online in a text file $check= "onlineCheck.txt"; $fh = fopen($check, 'a') or die("can't open file"); $nowOnline= "USER678 "; fwrite($fh, $nowOnline);

Categories : Java

Not able to login in facebook with facebook sdk 3.0 loginbutton button using other users, though it is working with developers login credentials
In your facebook's dev account check that your app is set to sandbox mode, so only developer accounts could get access token from app's ID, once you disable sandbox mode, your app will go live and you can log in with any facebook id.

Categories : Android

C# SQL Server Login Credentials
Simply get rid of Trusted_Connection=yes;. It's ignoring the User ID and Password parameters because you're telling it to use your domain credentials. Now, the error itself is saying that your domain user doesn't have a Login to the SQL Server.

Categories : C#

Posting Credentials To C# Login Page
Just thought I'd update my findings on this question. It turns out in order to call the [WebMethod], the ContentType must be set to "application/json". You also cannot use WebClient.UploadValues() because it wont let you change the ContentType. So in order to send the correct POST signature, you must use the HttpWebRequest Class. Also note: username and password sent MUST be in json format! HttpWebRequest myHttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(URL); myHttpWebRequest.Method = "POST"; myHttpWebRequest.ContentType = "application/json; encoding=utf-8"; using (var streamWriter = new StreamWriter(myHttpWebRequest.GetRequestStream())) { string json = "{user:"user1",pass:"pass1"}"; streamWriter.Write(json); streamWriter.Flush();

Categories : C#

login to third party website using the credentials in c#
You should be able to use the CookieContainer with the cookies you gathered from the webResp. cookies.Add(webResp.Cookies); You should not process the cookies as you are below that. Simply setting the CookieContainer on the new request is sufficient. webReq.CookieContainer = cookies;

Categories : C#

Set extra_context data according to login credentials for using in template
You can define a new view using the login view, in which you pass the extra_settings: from django.contrib.auth.views import login as auth_views_login def login(*args, **kwargs): extra_context = {'extra_value': 'some data here'} return auth_views_login(*args, extra_context=extra_context, **kwargs) Then just replace the Django view with yours in urls.py: url(r'^login/$', 'myapp.views.login', {'template_name': 'login.html'}, name="my_login"),

Categories : Django

how to keep django login page from remembering credentials
Django has nothing to do with the autocompletion. Either your browser, OS, or a third-party password manager is remembering and filling in the data for you. Try using Firefox and following the remove instructions. You may want to use the sqllite manager to view Firefox's saved password database. You can also write some javascript to try and persuade your password manager to not work.

Categories : Python

admin controlling login credentials of all users
You'll want to import the users, and give them a password initialization process of some sort. The Import Users from CSV plugin seems to do what you want.

Categories : PHP

How to handle different login credentials for modules in one project?
You have some options: Change "session_name" on a portal basis If you change the session name, the cookies that identify the session will be different from portal to portal. Note that no session will be shared this way. If the user logged to a portal, he'll need to log again to the others. Implement session namespaces You could set an array in the main $_SESSION object, one for each submodule, and use each array as if you are using the session directly. With this approach you can share the sessions (easily implementing SSO between the portals), but raises some security concerns. It's valuable to implement an API to access the session if you go this way.

Categories : PHP

symfony2 FOSUserBundle login returns 'bad credentials'
When you register with the provided controller from FOSUserBundle the password stored in DB is encrypted with 500 times SHA1 and the random generated salt. So if you always return "" by the function getSalt() the password will never match. do not override this function. you can however overwrite the Controllers in FOSUserBundle, more about that in the offical documentation. public function getSalt() { return ''; }

Categories : PHP



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