Home » Web Development » Page 1
Magento
Google Maps Store Locator extension by FME Extensions helps you to
manage your multiple stores from your website admin panel. This plugin
allows you to show all your stores on the Google Map. Furthermore,
customers can search nearest stores by name, address etc. and they can
view individual store details as well.

Key Features of Magento href="https://marketplace.magento.com/fme-google-maps-store-locator.html"
title="" target="">Store Locator Extension
 
style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: small; background-color: rgb(255, 255,
255);">
1. Stores can be managed from admin
2. Search stores by
region
3. All the stores are shown on the Google Map
style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: small; background-color: rgb(255, 255, 255);">4. Supports
multiple store views
5. Supports import/export of a store

I use Spatial coordinates from hibernate 5:



@Spatial(spatialMode = SpatialMode.HASH)
@Indexed
@Entity
public class Hotel {

@Latitude
Double latitude;

@Longitude
Double longitude;
}


The help from hibernate explain how to perform a spatial querry
using a querry builder. Is there a way to perform this request with
spring data jpa ?

I've got a problem converting string looking like
"ÐавлÑк ÐÑкÑоÑ" to correctly looking
string.



I'm trying to use such way:



func stringToUTF16String (stringaDaConvertire stringa:
String) -> String {

let encodedData =
stringa.dataUsingEncoding(NSUTF16StringEncoding)!
let attributedOptions = [NSDocumentTypeDocumentAttribute:
NSHTMLTextDocumentType]
let attributedString = NSAttributedString(data: encodedData,
options: attributedOptions, documentAttributes: nil, error: nil)!


//println(attributedString.string)
return attributedString.string
}


But I got a compiler error: "Type of expression is ambisious withou
more context" on that row:



 let attributedString = NSAttributedString(data:
encodedData, options: attributedOptions, documentAttributes: nil,
error: nil)!

I want to make button with hover using jLabel. When I come over
button errors appears.
I'm using netbeans. Most of the codes generated automatically.



public class anaEkrn extends javax.swing.JFrame {

public anaEkrn() {
initComponents();
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">

private void initComponents() {

jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();


setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/market2/images/tumu.png")));
// NOI18N
jLabel1.setText("jLabel1");
jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel1MouseEntered(evt);
}
public void mousePressed(java.awt.event.MouseEvent evt) {
jLabel1MousePressed(evt);
}
});

javax.swing.GroupLayout jPanel1Layout = new
javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 79,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(197, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 97,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
);

javax.swing.GroupLayout layout = new
javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addContainerGap(298, Short.MAX_VALUE)
.addComponent(jPanel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(23, 23, 23))
);
layout.setVerticalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(19, 19, 19)
.addComponent(jPanel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(328, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jLabel1MouseEntered(java.awt.event.MouseEvent evt) {

ImageIcon icon= new
ImageIcon(getClass().getResource("/images/tumu.png"));
jLabel1.setIcon(icon);
}

private void jLabel1MousePressed(java.awt.event.MouseEvent evt) {

ImageIcon II = new
ImageIcon(getClass().getResource("/images/tumu_hover.png"));
jLabel1.setIcon(II);
}

public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel
setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with
the default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {

javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(anaEkrn.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(anaEkrn.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(anaEkrn.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(anaEkrn.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
}
//</editor-fold>

/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new anaEkrn().setVisible(true);
}
});
}

// Variables declaration - do not modify
public javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
// End of variables declaration


There are so many errors under this error title.



Exception in thread "AWT-EventQueue-0"
java.lang.NullPointerException



What should I do?

I've just installed android studio. For the first time when I run
that after a short while (after showing a loading bar), It shows me
this error. So I searched in Internet and I did Everything I
could,(downloading the last version on Java, re-installing the Program
and run it for the first time as administrator, Adding the system
variable JAVA_HOME and etc.)but still it shows me a
dialog with this information:



Internal error. Please report to
https://code.google.com/p/android/issues

java.lang.RuntimeException: java.lang.NullPointerException
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:178)
at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.NullPointerException
at
com.android.tools.idea.welcome.AndroidVirtualDevice.<init>(AndroidVirtualDevice.java:81)
at
com.android.tools.idea.welcome.InstallComponentsPath.createComponentTree(InstallComponentsPath.java:89)
at
com.android.tools.idea.welcome.InstallComponentsPath.init(InstallComponentsPath.java:215)
at
com.android.tools.idea.wizard.DynamicWizardPath.attachToWizard(DynamicWizardPath.java:97)
at
com.android.tools.idea.wizard.DynamicWizard.addPath(DynamicWizard.java:233)
at
com.android.tools.idea.welcome.FirstRunWizard.init(FirstRunWizard.java:75)
at
com.android.tools.idea.welcome.FirstRunWizardHost.setupWizard(FirstRunWizardHost.java:100)
at
com.android.tools.idea.welcome.FirstRunWizardHost.getWelcomePanel(FirstRunWizardHost.java:92)
at
com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.<init>(WelcomeFrame.java:68)
at
com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.showNow(WelcomeFrame.java:173)
at
com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:302)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:172)
... 16 more


What should I do now only for running Android Studio?

I would like to create a block of 5 blocks of the same width with
margins of 10px whose first div is in a fixed position or does not
scroll, All responsible or aligns verticalment mobile. href="https://fonts.googleapis.com/css?family=Belleza"
rel="nofollow">https://fonts.googleapis.com/css?family=Belleza'
rel='stylesheet' type='text/css'> href="https://fonts.googleapis.com/css?family=Raleway:400,500,700"
rel="nofollow">https://fonts.googleapis.com/css?family=Raleway:400,500,700'
rel='stylesheet' type='text/css'>



.wrapper{
display: flex;
}
._bloc{
width: 20%;
height: 100vh;
background-color: #122b40;
margin: 10px;
}







Div Fixed
2
3
4
5



I'm very sorry if this is just a simple question but I'm really bad
when it comes to alignment/positioning of elements and stuff like that
so here it goes.



My problem is shown here:
rel="nofollow">http://imgur.com/a/xscLJ



src="http://i.stack.imgur.com/TTs6V.jpg" alt="picture of the
issue">



I just want the glyphicon to appear beside the textfield not above
it. Just that. I tried putting it inside the form tag but the result
is the same. Here is my code.



<div id="form" class="collapse in">
<div id="loginwrong" style="display: inline-block;
vertical-align: top;">
<div id="loginwrong2" style="display: none;">
<span class='glyphicon glyphicon-remove-circle'
style="color: red; font-size: 2em;"></span>
</div>
</div>

<form method="POST" class="form-inline" role="form">
<input type="password" name="pw" placeholder="Enter
Password" class="form-control">
<input type="submit" class="btn btn-primary"
name="submit" value="Submit">
</form>
</div>


I also have a script that will show the glyphicon if the password
is wrong. (it's basically a password-accepting textfield)



<?php
echo "<script type='text/javascript'>
$('#loginwrong2').show();
</script>";
?>

Why the first
MessageBox() works and the second
doesn't?



I don't know where the problem is.



Does the MQL5 can access the
dll file?



I need to to call C# functions that read
JSON.



No errors appear in MetaEditor.



C# .dll file:



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
namespace TestMe
{
class Test
{

// [DllExport("Add", CallingConvention =
CallingConvention.StdCall)]
public static int Add(int left, int right)
{
return left + right;
}


public static int Sub(int left, int right)
{
return left - right;
}


public static double AddDouble(double left, double right)
{
return left + right;
}


public static float AddFloat(float left, float right)
{
return left + right;
}
}
}


this is an MQL5 code:



#import "TestMe.dll"
int Add( int left, int right );
int Sub( int left, int right );
float AddFloat( float left, float right );
double AddDouble( double left, double right );
#import

#property strict // MQL-syntax-mode-modifier ==
"strict"

int OnInit()
{ int k = 0;
MessageBox( k ); // this call works
k = Add( 1, 666 );
MessageBox( k ); // Doesn't work

return( INIT_SUCCEEDED );
}

in my controller, I pass my template a list of projects



$projects = Project::all();
return view('projects.index', compact('projects'));


Now a Project has one client, and a client belongs to a project.
If I loop my Projects within my view, I get the following data



#attributes: array:11 [▼
"id" => "25"
"jobNumber" => "J0001"
"projectName" => "Some Name"
"clientId" => "1"
"clientContact" => "Some Contact"
"contactEmail" => "email@email.co.uk"
"status" => "Email"
"deleted_at" => null
"created_at" => "2016-04-25 14:15:19"
"updated_at" => "2016-04-26 10:05:06"
]


As you can see, the clientId is 1. This links to a particular
client. Is there any way to get the client name using this ID? I
know how to do it in the controller, but I can't pass a variable for
each project which has the clients name, this would be too much. As it
stands, I am passing the view all of the projects, and each of these
has a clientId. Somehow I need to get the named based off this.



Thanks

I have an Instagram API which I load into a JSON. The response is
coming properly and I am even able to fetch the id from the data
received. Then I save it in a python list and put it in an Excel sheet
using openpyxl.



Here is the catch. While loading the values, If there is no
response from API in case of a deleted instagram account,where the
JSON will be empty, I want to store "ACC deleted" in the list.



(NOTE :- I also referred similar questions but didnt get my answer
which works.)



Here is the code:



for r in range(1,51):
var=r,test.cell(row=r,column=1).value
xy=var[1]
myopener=Myopener()

url=myopener.open('https://api.instagram.com/v1/users/search?q='+xy+'&count=1&access_token=641567093.1fb234f.a0ffbe574e844e1c818145097050cf33')

**beta=json.load(url)
for item in beta['data']:
list.append(item['id'])** //*HERE I WANT THE CHANGE*


for j in range(len(list)):
for row in sheet.iter_rows(min_row=j+1, max_row=j+1):
for cell in row:
cell.value=list[j]
wb.save('sample.xlsx')


The json Response is this:



{
"meta": {
"code": 200
},
"data": [
{
"username": "rawhawk_sk",
"profile_picture":
"https://scontent.cdninstagram.com/t51.2885-19/s150x150/12724928_109384759877664_1105313598_a.jpg",
"id": "670907103",
"full_name": "shwan mcswan"
}
]
}


If the json response is empty like below, how to store "ACC
deleted" in the list?



{
"meta": {
"code": 200
},
"data": []
}

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow