JQueryUI Slider – 3 Labels

I am working on a project that requires the user to select a hidden value from -10<=>10 I like the look and function of the JQueryUI widgets, and the increment slider would work if…. I can place 3 labels. OptionA………………Neutral…………………OptionB Their is a well-formed JSFiddle that has formatted numbers or ticks for each increment spot. […]

JQUERY UI .auto-complete

I need a little bit of help. I am trying to add jQuery UI autocomplete, $(“#search”).autocomplete({ source: $post }); To the code below and I am not to sure how to go about on doing it.. // Communication to PHP file function searchq() { var searchTxt = $(“input[name='search']“).val(); $.post(“tagasearch.php”, {searchVal: searchTxt}, function(output){ $(“#output”).html(output); }); }; […]

Swapping elements of array in MIPS assembly

I’m trying to get the hang of swapping elements in MIPS assembly but seem to be messing up with needing to switch more than one item. The idea behind my project is to put an array with two element per entry in increasing order. Below I have the 5-6 2-4 2-0 which after swapping should […]

Reading assembly code

I am trying to decipher what this assembly code does. I know it reads in six integers to unlock the next level. 0x08048c24 <+0>: push %esi 0x08048c25 <+1>: push %ebx 0x08048c26 <+2>: sub $0x34,%esp I think these first three lines are just initalizing stuff. 0x08048c29 <+5>: lea 0x18(%esp),%eax 0x08048c2d <+9>: mov %eax,0x4(%esp) 0x08048c31 <+13>: mov […]

MySQL injection vulnerability for Joomla 1.5/2.5/3

Yesterday in Joomla VEL has been announced a vulnerability in a component that I would rather not mention here in order not to spread this information, and that I would like to fix. This vulnerability applies also to Joomla 1.5 version of the component, but the component team only fixed the vulnerability in Joomla 2.5 […]

Is Little-Endian a byte or bit order in x86 architecture?

The title says it all. I want to know when a x86 instruction reads data from memory does it translates it’s bytes or it’s bits to the Little-Endian order. For example if we have the following data at address “0” (in binary) (written here in RAW format, sequental): 00110010 01010100 And if I read it […]

how to shut down a machine in 32 bit protected mode

I have been researching a method to shutdown computer without switching to 16 bit real mode. I cannot call BIOS functions in 32 bits protected mode. Although I have been looking for information about that for almost one week, I haven’t been able to find any document or source code which works correctly. Because I […]

jquery drag, drop and clone, find dropped position of element

Here, is my fiddle for jquery drag, drop and clone feature. Problem: My problem is: when ever I drop element, it is showing: position: {top: 0, left: 0} only for draggable, clone and droppable element. I have also written code for finding position using only draggable function and that is working fine. I want this […]

Adding Anchor to every module in Joomla 3.1

I am trying to modify the module template code to add an anchor to the title of each module. I have extremely limited PHP knowledge, so any guidance would be very helpful. I’ve found posts for doing this with articles, but the code appears to be very different for modules. This is the code that […]

JS does not work indirect execution

I have this js code that works perfectly with double click, but when I try to incorporate it in another file it doesn’t work. The code is supposed to display a POP up window on button click. The problem in the second case is that what should be displayed in pop window, displays directly in […]

Assembly – Error: junk 40 after expression

I’m using an i686-elf-as gcc cross compiler and it’s failing to compile an assembly file. The file is used alongside grub to boot my own operating system but when i try defining any globals or enter the _irq part it spits out tons of errors which are mainly boot.s:78: Error: no such instruction: `irq4′ boot.s:81: […]

Joomla migrate 1.5.26 to 2.5

Hi I have website developed on joomla 1.5.26 I want to migrate it to joomla 2.X, I have tried so many methods but unable to do so I would appreciate if anyone help me. Thanks   Asked By – Ihsan Bhatti        Read Answers     0   

Highlight reactive elements when they are inserted into the DOM – Meteor

I want to know how I can highlight new elements with $(‘.game-panel’).effect(‘highlight’); (jQuery UI) immediately after they are inserted into the DOM. {{#each games}} {{> game}} {{/each}} <template name=”game”> <div class=”game-panel”> Test </div> </template> Any help would be greatly appreciated.   Asked By – user3475602        Read Answers     0   

Why are 32-bit mips instructions stored in 64-bit space?

MIPS 32 uses instructions of 32 bits. But when almost all instructions are done, the CPU adds +4 to the PC. As far as I know, 4 words means 64 bits, so, how can this be possible? Am I forgetting something or does mips32 wastes 2 empty words every instruction?   Asked By – user3592347 […]

Jquery sortable + zoom

there is a bug in the sortable elements after changing container zoom with css. After clicking the button, try dragging an element $(‘#change’).click(function(){ $(‘#grid’).animate({ ‘zoom': 0.4, ‘-moz-transform': ‘scale(‘ + 0.4 + ‘)’}); }); $(‘#grid’).sortable({ items: “li:not(.ui-state-disabled)” }); <link rel=”styleheet” href=”//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/smoothness/jquery-ui.css” /> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js”></script> <script src=”//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js”></script> <button id=”change”>Reproduce bug</button> <ul style=”margin-top: 40px;” id=”grid” class=”grid”> <li>1</li> <li>2</li> […]

Save in Roksprocket plugin in Joomla

I am using Roksproket 2.1.2 module in joomla. I tried to add an article into it, but it displays an error at the time of save. The error message is as shown below: “Invalid JSON data Uncaught Exception: UNHANDLED ERROR [8] Trying to get property of non-object D:\xampp\htdocs\mysite\components\com_roksprocket\lib\RokSprocket\Provider\AbstarctJoomlaBasedProvider.php:22 [0] File: D:\xampp\htdocs\mysite\libraries\rokcommon\RokCommon\Ajax.php Line: 149″   Asked […]

Unable to make relaytive layout fill its parent screen

I have had this problem for some time now.I really wanted the reativelayout with id “relate” to fill the available parent screen (no matter the screen size) and when scrooled up the relaytive layout with id “rel” should become visible too.but dont know how to achieve that. Here is my xml <?xml version=”1.0″ encoding=”utf-8″?> <ScrollView […]

Quotient of two integers not displaying in assembly

A part of my code is supposed to get the sum, difference, product and quotient of two integers and display them. It works fine for the sum, difference and product. However, when it comes to the quotient, it’s not displaying anything. Can anyone please explain why that is and if there is any way to […]

Jquery UI Tooltip take place in <TR> tag

When i put Jquery UI tooltip on td element in table jquery creates <div class=”tooltip”> directly inside tr tag. This ‘div’ element takes some place in UI and shift td element on which it was applied a little bit to the left. here is example code: How to make tooltip do not take any place […]

Drag and drop check on submit button blocks placed in right slots if not than revert only wrong slots to their orginal place

I have created a drag and drop programe using jqueryUI dragable and dropable. Everything working fine but I want to check blocks place in right slot. If not than wrong slot place to their original place. Javascript I tried $(function () { var correct = 0; var flag = false; $(“#footer li”).draggable({ containment: ‘#wrapper’, stack: […]

Create multi domain vendor script in php

i want to create a multi vendor domain script in PHP. I have wondered all the places but nothing found yet. It is possible to create multi vendor domain with one site. I have a site and in this site there lots of user will create own site. if user logged in vendor id then […]

Why the translation made by Falang 1.4.0 of J!MailAlert 2.5.1 Alerts is not shown on front-end of Joomla 3.3.3

I have created a translation plugin for Falang in order to be able to translate J!MailAlert alerts: <?xml version=”1.0″ ?> <falang type=”contentelement”> <name>J!MailAlerts: Alerts</name> <author>Zeusarm</author> <copyright>www.somesite.com</copyright> <version>1.0.0</version> <description>Translation – J!MailAlerts Alerts</description> <reference> <table name=”jma_alerts”> <field type=”referenceid” name=”id” translate=”0″>ID</field> <field type=”titletext” name=”title” translate=”1″>Title</field> <field type=”htmltext” name=”description” translate=”1″>Description</field> <field type=”htmltext” name=”template” translate=”1″>Template</field> </table> </reference> <component> <form>com_jmailalerts#jma_alerts#cid#task#!edit</form> </component> […]

view.getMeasuredHeight() is returning value as 0 for a view with height more than 0

I have written following code snippet. At first line height is non zero but after calculating height using view.measure, it is returning height as zero. This view is a linear layout with no child and height set using dynamic code. int height = view.getMeasuredHeight(); view.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); height = view.getMeasuredHeight();   Asked By – […]

Convert browser-caching settings from Apache to IIS?

Can someone convert this from Apache to IIS? I need it for some Joomla sites hosted on a IIS server. I am very much open to better ideas Here are the settings: <IfModule mod_expires.c> # Turn on Expires and set default to 0 ExpiresActive On ExpiresDefault A0 # Set up caching on media files for […]

Joomla setup redirect

I have a problem in Joomla redirect manager component. I have 3000 links which I must redirect to new links. Is there some way to quick setup redirection in Joomla?   Asked By – yetuweiba        Read Answers     0   

Strange fragment behaviour – empty container in view hierarchy after screen rotation

I encountered very strange problem with fragments. In my case I have fragment which is placed inside activity. It has two type of layout: layout – with Frame Layout with list_container id layout-land – with two Layout: list_container and detail_container. When user enters activity in portrait mode he sees TestListFragment. When he clicks one of […]

Change Position Of ImageView Through onClickListener

I want to create a program in which when i press the Up Button the Ball image moves towards the top 1px and when i press the Down Button the image moves to Bottom . Now Tell me how i get this output.   Asked By – Hassan Usman        Read Answers     0   

draggable helper going behind table in jqgrid

I have been using Jquery Draggable for the rows which has been implemented by JqGrid.But when the item is dragged the Drag Helper is not going out of table boundary. I can drop the item. But the Helper item is not showing outside the table during the drag process. How can i make it possible […]

Autocomplete Directive in AngularJS not working

Hello I have created one autocomplete directive in AngularJS which works perfectly fine with 1.8.22 version of Jquery. But when I upgrade the Jquery UI version to 1.11.1 then it had stopped working. Can anyone please let me know if anything has been stripped out from the new module.directive(‘autocomplete’, [ function () { return { […]

PrefrenceActivity example

<PreferenceCategory android:title=”Sending Email” > <PreferenceScreen android:summary=”Settings for sending email to your account” android:title=”Email Address” > <EditTextPreference android:key=”mail” android:title=”Email Address” android:dialogTitle=”enter your email” /> <EditTextPreference android:dialogTitle=”enter your password”/> <EditTextPreference android:dialogTitle=”from you will receive MSG” /> </PreferenceScreen> </PreferenceCategory> I want to create a preference activity which have more than one edit text like a form for registration […]

Unit Tests, Creating Data Source – StringConnections in VS2013

can someone tutorial me how to create DataSource from Excel File linked wih Unit Test i VS2013? In VS2010 were possible to open Project -> Test View and then Properties. Now that option isnt possible. I tried msdn help and so on but i cant do that. I would like to reach sh like here […]

How to add a scrollbar for jQuery autocomplete

$(function() { $( “#customer_name” ).autocomplete({ source: function( request, response ) { $.ajax({ url: “/management/order/auto”, dataType: “json”, data: {name: request.term}, success: function(data) { var suggestions = []; $.each(data, function(i, val) { suggestions.push({ label: val.name, code: val.code, id: val.id, }); }); response( suggestions ); }, }); }, select: function(e, ui) { $(‘#customer_id’).val(ui.item.id); $(‘#customer_code’).val(ui.item.code); }, maxShowItems: 5, }); […]

Making an AJAX callback for every row in a table / MVC 4 ASP.NET

I’m creating a View which will ping a list of servers and display status once a response is received: Server 1 – * Waiting for response * Server 2 – * Response received * Server 3 – * Waiting for response * On page load they will all (theoretically) display * Waiting for response *, […]

Jquery drag, drop and clone proper positioning

UPDATED Fiddle Here: jsfiddle here full-screen-result NOTE: I am new to fiddle, and somehow I integrated my code to fiddle, but drag drop is not working on it. Hi I have implemented drag, drop and clone feature with the help of jquery draggable and droppable functions which looks like this: $(“.dragSigners”).draggable({ helper: ‘clone’, cursor: ‘move’, […]

How do you represent a spreadsheet as java object

I have a spreadsheet, first column is date, next three columns contain doubles, let’s call them x1, x2, x3. I do lots of calculations using the numbers in these rows and columns. Let’s call the new columns thus derived y1, y2,…y10. To represent this as a class, is each row a class? So if I […]

Android Home Button Click crashes the app

I am developing an application in which I came across a weird problem. The app works fine but when the user clicks on home button of the device the app crashes giving the following error. LogCat ** 09-19 10:45:33.989: W/ResourceType(4263): Failure getting entry for 0x7f0a0017 (t=9 e=23) in package 0 (error -75) 09-19 10:45:33.989: D/AndroidRuntime(4263): […]

Getting the Object Calling a Method

In java, how can you get the object calling a method, within the method it is calling, if the method is in another class? I have looked all over the internet and no solution. Could someone please help?   Asked By – Jacob Harris        Read Answers     0   

How to hide Admin Menu (backend) in Joomla 3?

How to hide ‘System > Control Panel’, ‘Components’, ‘Help’ these 3 menu items in joomla3? Sorry not enough reputation to post image. =.= Certain user groups do not need to access/view these. I have hide the rest such as ‘Users’, ‘Menus’, ‘Contents’, ‘Extensions’ but can’t hide these.   Asked By – mgg        Read Answers […]

Update values of all public variables of class using get_object_vars()

I have class with 100 public members. How can I update them in an automated way, ie without specifying their name. I have tried this and I’m getting variables but the changes made doesn’t reflect on actual object. Please advice. class foo { public $b = 1; public $c = 2; function __construct() { $x […]

Android Custom Navigation not responding to Click

I am not able to figure out the whats wrong in code. I tried out with custom navigation drawer and code is working fine but with custom(icons) navigation the drawer is not responding to click. NavigationDrawerFragment.java public class NavigationDrawerFragment extends Fragment { /** * Remember the position of the selected item. */ private static final […]

Printing Prime Numbers in Assembly

I’m trying to print prime numbers from 1-100 in assembly, but not only is my code printing out extra numbers, but also excluding some prime numbers. Here is my main procedure: mov min, 1 loopStart: inc min ; min++ mov eax, min cmp eax, max ; compare 2 and 100 je next ; jump unless […]

Why it works when I assign the object with others object?

I’d like to assign the object of type B to object of type A, but i don’t know why it works with different types for the assignment? #include <stdio.h> class B { public: B() { printf(“B default constructor.\n”); } }; class A { public: A() { printf(“A Default constructor.\n”); } A(B const& b) // if […]

How to access the PC pointer (using assembly) in AVR-libc?

I am trying to write some conditional jumps in AVR assembly using AVR-gcc. According to AVR instruction set manual, the brxx instructions take in an operand k, and jumps to PC+k+1. Also, according to the tutorial PDF from http://www.avrbeginners.net/new/tutorials/jumps-calls-and-the-stack/, I should be able to use the PC operand to jump like this: brne PC+2 However, […]

Sorting/reordering dependent instructions for dual issue processing

I attempted to write a sort algorithm to reorder instructions for a dual issue processor (Cell SPU). One way to obtain dual issue processing an instruction should not depend on the instruction that precedes it (another involves separate pipelines, but I’m focused on instructions in the same pipeline). I understand this would be too much […]

Fit 8 frame layouts in a linear layout

I have an application where I need to fit 8 frame layouts inside a linear layout in the below format : ———————- 1 | 2 ———————- 3 | 4 ———————- 5 | 6 ———————- 7 | 8 The XML file i created for the same is as follows : <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:id=”@+id/tableLayout1″ […]

How to create class with data fields

I am in a programming class that has provided me with a project but I have no idea where to start and was hoping someone could push me in the right direction. I am only posting part of the project so that someone can show me a bit of the code to get an idea […]

Working with Sinch Instant Messaging System

I am using Sinch and Parse for my instant messaging system integrated in our application, and I have two concerns. 1) For some reason, I am receiving the following error when the messaging activity is displayed: The message client did not start”. Furthermore, the message does not seem to go through in Sinch and not […]

Internet Explorer – do not remember my cookies for 30 days and forgetting when browser is closed

I have this cookie set for 30days but when i close IE browser and restart the cookies are not read next time. How to fix it? // Set cookies function setCookie(cname,cvalue,exdays) { var d = new Date(); d.setTime(d.getTime()+(exdays*24*60*60*1000)); var expires = “expires=”+d.toGMTString(); document.cookie = cname + “=” + cvalue + “; ” + expires; } […]

How to let an image define the layouts with in Android

I want an image to define the layout’s bounds and need all other elemets to oriente themselfes to it. My problem here is that i want the text to wrap, when it reaches the images end. Any idea how to solve this via layout xml or do I have to implement that via code? My […]

Updated to 14.04.1 cant launch desktop, black screen with cross cursor

Updated my HP Proliant N54L from 13.04 to 14.04.1, everything went smoothly until the reboot, as it started to load up the desktop it displayed this screen – http://i.stack.imgur.com/xVgDT.png I can access terminal from that screen, I tried the following but it didn’t work sudo apt-get update sudo apt-get install –reinstall ubuntu-desktop sudo apt-get install […]

Next Page »