on-internet

Can We Create SharePoint Custom Web Parts in Office 365 Online with out using Visual Studio?

I am new to SharePoint and Exploring the Office 365 Small business feature online using trial subscription. I'm able to create 'App Parts' using Office 365 Developer Site Subscription(by using 'NAPA' SharePoint Developer tool). Now I wanted to create SharePoint 'Custom WebPart' in Office 365 online without using Visual Studio 2010,2012,2013. Please Guide me on this by providing some reference links for creating "Custom WebParts" in Office 365 Online and how can i use created web parts. Edited: Are there any online tools or sharepoint apps like 'NAPA' available for develop custom Web Parts onli

Join the discussion →

How to send Json String using REST to java webservice in Parameter in android?

Fiends, i sending JSON String with three parameters to java web service method. but on java side method cant print in console. Please guide me what i have to change from below code? String json = ""; HttpParams httpParams = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(httpParams, 10000); HttpConnectionParams.setSoTimeout(httpParams, 10000); HttpClient httpclient = new DefaultHttpClient(); // Prepare a request object HttpPost httpPost = new HttpPost(url); HttpGet httpGet = new HttpGet(url); JSONObject jsonObject = new JSONObject(); try { jsonObject.put("name", "ghanshyam");

Join the discussion →

Debug Core dump in QNX - How to get more info?

My previously working code crashes now. The core dump points to the constructor being called. I have tried to get bt, bt full and disassembly. I need some help to conclude what could cause segmentation fault while calling constructor? Code is run on QNX and there is console gdb only. The local variables are all 0, what could that mean ? Here's the o/p: (gdb) bt #0 0x481a95b0 in notifyDs3PathAlarmClrEvent__F9PATH_TYPEUi17DS3_PATH_ALARM_ID (path_Type=PATH_NULL, pathId=1215822164, alarm_Id=DS3_PATH_IDLE_ID) at /vob/qnx/cema-common/msg/PathObjMsg.h:47 (gdb) bt full #0 0x481a95b0 in notifyDs3PathAl

Join the discussion →

copy files from one server to another using php

I have two similar websites.Some of the content are same in both sites.I have some files in specific folder in one website say A.I want to copy some specific files from Website A to website B. I have tried ftp functions in php but not working. <?php // define some variable $local_file = 'eg.html'; $server_file = 'http://example.com/horoscope/M12459TAM_03092009_123239.html'; // set up basic connection $conn_id = ftp_connect("example.com"); // login with username and password $login_result = ftp_login($conn_id, 'username', 'password'); echo is_array(ftp_nlist($conn_id, ".")) ? 'Connected!' : 'no

Join the discussion →

My CodeIgniter query containing a mix of AND and OR conditions in the WHERE clause doesn't return the right count [duplicate]

I really can't see where the issue is here. EX: A BMW is on sale in New York (city_id = 5) and Connecticut (city_id = 3), so when user enters BMW in search box it returns 2 results where it should only be 1. public function search_result_count($search) { $count=0; $search = addslashes($search); $city_id = $this->tank_auth->get_user_city()->id; $sql="select count(id) as count from ".$this->table_name." where title LIKE '%$search%' or zipcode like '%$search%' and city_id ='$city_id' "; $query=$this->db->query($sql); if($row=$query->row()) { $count=$row->count; } return $count; } Even if I assign

Join the discussion →

Could not initialize class org.apache.axis.client.AxisClient

I'm facing a problem with the following exception. Can anyone help me fix the error? I have added axis.jar in classpath but I'm still facing this issue. java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient org.apache.axis.client.Service.getAxisClient(Service.java:104) org.apache.axis.client.Service.<init>(Service.java:113) com.netsuite.webservices.platform_2013_2.NetSuiteServiceLocator.<init>(NetSuiteServiceLocator.java:12) com.zyom.netsuite.NetsuiteIntegrationManager.<init>(NetsuiteIntegrationManager.java:169) com.zyom.netsuite.NetsuiteIntegrationManage

Join the discussion →

cygwin win 8.1 error: find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer

This error has occurred some time ago, in 2011 http://cygwin.com/ml/cygwin/2013-11/msg00021.html From what I have read on this and some other posts, I see that they have written some ugly hack which parses a windows dll looking for this FAST_CWD variable. My best guess is that a newer windows update has again changed the dll and now the function is broken again. I am not familiar with the skills used while developing cygwin so I only guess on these things. Any suggestions? Also, maybe this log might shed some light: Dito@Kungi ~ $ serverx11 -bash: serverx11: command not found Dito@Kungi ~ $ st

Join the discussion →

Adding a link to a element while parsing json?

Another noob question/issue.....I am currently parsing a json file and appending the data to an HTML table. I need to make one of the name/value pairs (COPD_QUAL.FIN) display as a link within the table. Here is my function to append the data.... function createPatientTable(json) { $.each(json.LIST, function(i, COPD_QUAL) { $('.footable > tbody:last').append('<tr><td>' + COPD_QUAL.PATIENT + '</td><td><a href="javascript:APPLINK(0,"powerchart.exe","/PERSONID=8986122 /ENCNTRID=14150574")">' + COPD_QUAL.FIN + '</a></td><td>' + COPD_QUAL.NURSE_UNIT + '</td><td>' + COPD_QUAL.ROOM + '</td><td>' + COP

Join the discussion →

Resource for local cuisines and specialties across Japan

I'm wondering if there's some website that's like a "Foodie's Guide to Japan", or maybe a "Foodie Wiki" covering the whole world including Japan, etc. I know there are lots of special local dishes all over Japan, many of them are seasonal, only on one mountain or island, etc. Usually I've found out about these by chance if they happened to be mentioned in a Wikivoyage or Wikipedia article on a prefecture or town, or if I'm somewhere in Japan and a friend says "This dish is very famous from here", or sometimes from looking at what's being sold at Service Areas and Michi-no-ekis along expressway

Join the discussion →

How to avoid HTTP error 429 (Too Many Requests) python

I am trying to use Python to login to a website and gather information from several webpages and I get the following error: Traceback (most recent call last): File "extract_test.py", line 43, in <module> response=br.open(v) File "/usr/local/lib/python2.7/dist-packages/mechanize/_mechanize.py", line 203, in open return self._mech_open(url, data, timeout=timeout) File "/usr/local/lib/python2.7/dist-packages/mechanize/_mechanize.py", line 255, in _mech_open raise response mechanize._response.httperror_seek_wrapper: HTTP Error 429: Unknown Response Code I used time.sleep() and it works, but it see

Join the discussion →

How to set max scroll position?

Let's say that we have body width of page set to 2000px with content centered horizontally inside of body with width set to 1200px. <body> <div class="content"></div> </body> CSS: body { width: 2000px; } .content { position: relative; width: 1200px; margin-left: auto; margin-right: auto; } What I am trying to achieve is that I do not allow horizontal scrolling at all until your window size is 1200px or less (on resize) with setting overflow-x to hidden. $(function() { $(window).resize(function() { if(window.innerWidth > 1200) { $("body").css({ "overflow-x": "hidden" }); } else { $("body").css(

Join the discussion →

java.lang.IllegalArgumentException: attempt to create delete event with null entity

Cann't delete/update items from database.This exception is coming when try to delete item And this form get a combo box value from MainCategory class and having a foreign key of MainCtegory.Is that the reason that not allow to delete/update. package com.auction management.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; @

Join the discussion →

Resizing Image and fit it to the Canvas size

Can anyone help me to resize the image using ImageTk? I have a canvas and I will put pictures there. I have different kinds of pictures = different sizes for all pictures And when I attach the picture (just one) in the canvas, I want the picture's size to resize so that it will fit in the canvas and it will still maintain its proportion. Please help me! I am new in PIL, Tkinter,and Python. Update: I tried using thumbnail under Image but in resizing: self.image.thumbnail(self.picsize,Image.ANTIALIAS) the image is not fitting the canvas size and if the image is longer/wider than the canvas, it i

Join the discussion →

Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'

Hi I have an invalid sql statement error. This is my code: Imports System.Data.OleDb 'For OleDbConnection Imports System.Data 'For ConnectionState Public Class WebForm1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub btnInsert_Click(sender As Object, e As EventArgs) Handles btnInsert.Click '1 declare the variables Dim strName As String = txtName.Text Dim strAddress As String = txtAddress.Text '2. creates a new connection to your DB. Dim conn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;D

Join the discussion →

What can cause Chrome to give an net::ERR_FAILED on cached content against a server on localhost?

I'm building a web server and trying to test things. The server is running on localhost:888, and the first time I load the web app, everything works. But if I try to reload the page, a bunch of XmlHttpRequest requests fail with net::ERR_FAILED. By putting breakpoints in the server code, I can verify that the requests are never actually coming in. This isn't a connection failure, as the connection succeeds the first time. The fact that it succeeds once and then fails later implies that it might be caching-related, but there's nothing in the server code that sets the cache-control header. So I t

Join the discussion →

Use BeyondCompare to see difference between files in GIT

Before I commit my changes, I want to see the difference using BeyondCompare in GIT. How can I configure BeyondCompare to see difference in my files. I looked at this link but it did not help. BeyondCompare is installed at this location in my system: C:\program files\Beyond Compare\BCompare.exe I ran following two commands: git config --global merge.tool bc git config --global mergetool.bc.path "C:\program files\Beyond Compare\BCompare.exe" I am using GIT on Windows 7. Thanks !!

Join the discussion →

Column 'id' in WHERE clause is ambiguous using CodeIgniter's query builder [duplicate]

I get this error and I can't figure out why? Error Number: 1052 Column 'id' in where clause is ambiguous SELECT `leads`.*, `customers`.`id` AS customers_id, `customers`.`name` AS customers_name, `customers`.`company` AS customers_company, `customers`.`email` AS customers_email, `customers`.`phone` AS customers_phone, `customers`.`created_at` AS customers_created_at, `customers`.`updated_at` AS customers_updated_at, `customers`.`ip_address` AS customers_ip_addressFROM (`leads`) JOIN `customers` ON `customers`.`id` = `leads`.`customer_id` WHERE `id` = '3' AND `leads`.`id` = '1'LIMIT 1 Filename:

Join the discussion →

How to display data in textbox using MS Access database

I'm trying to display user data from a database into a textbox so that the user can edit/update that data later. I'm getting an error: no value has been set for at least one of the required parameters. I did not write the SELECT * FROM, because I'm not displaying data like AdminRights. Can you please help me fix the error? This is my code: private void refresh_Click(object sender, RoutedEventArgs e) { if (!isPostBack) { DataTable dt = new DataTable(); con.Open(); OleDbDataReader dr = null; OleDbCommand cmd = new OleDbCommand("SELECT [Name], [LastName], [UserName], [Password], [Address], [Email

Join the discussion →

Form and designer files not linking in Solution Explorer

I can't seem to get the form and the designer files to link in my project. They look like this in the Solution Explorer. I have excluded the files from the project and then tried including them back in the project, but this didn't work. Below is the designer code and a snippet of the forms code in case there is something in there. public partial class FormPrompt { private Button ButtonOk; private Container Components; private Label LabelPleaseEnter; private Label LabelPrompt; private TextBox TextBoxData; private void InitializeComponent() { this.LabelPleaseEnter = new Label(); this.LabelPrompt

Join the discussion →

How to move database and attach it to SQL Server 2008

I am not able to attach a database to a SQL Server 2008 on different machine. I moved the .mdf and .ldf files after detaching the database from one computer to another. When I try to attach the database on new machine the database does not show up on the file location. If I browse manually I can see the files (.mdf and .ldf). There are no hidden files under the MSSQL > DATA folder which contains all the other database files. Also is there a way to backup the database, move it to new machine and add under SQL Server? If yes then how can I do so? Please advise.

Join the discussion →

C++ random function not random

In my c++ code I have a problem. My random drawBlock function which should return xRandom and yRandom is not so random. void Game::drawBlock() { int xRandom, yRandom; std::cout<<time(NULL) << std::endl; xRandom = (rand () % 620) + 1; yRandom = (rand () % 440) + 1; std::cout << "x: " << xRandom << std::endl; std::cout << "y: " << yRandom; mBlock.setSize(sf::Vector2f(20,20)); mBlock.setPosition(xRandom,yRandom); mBlock.setFillColor(sf::Color::Red); } so what basically happens is that the first random number, in this case xRandom isn't really random. When I run the program everything seems fine x

Join the discussion →

Sublime Text 3, convert spaces to tabs

I know there are a lot of posts about this, but I couldn´t get it to work. I use tabs for coding. Is there a way, to convert always spaces to tabs? I.e. on open and on Save files? Anyone got an idea? My desire is to do this automatically! -> open, save or on the fly. Does anyone know how to do? I tried this: import sublime, sublime_plugin, os class ExpandTabsOnSave(sublime_plugin.EventListener): # Run ST's 'expand_tabs' command when saving a file def on_pre_save(self, view): if view.settings().get('expand_tabs_on_save') == 1: view.window().run_command('expand_tabs') And here are my user Settin

Join the discussion →

JOIN qualifying foreign table rows which might not exist using CodeIgniter's query builder

I have a table video with fields videoid, genre(int-foreign key), language(int-foreign key), etc. I want to get the value of genre from the genre table and language from the movie_languages table. The structure of tables are given below: video genre movie_languages How can I join these 3 tables to get the language and genre related to each videos in video table. Also, when the user didn't select a genre/language in the form, the value 0 will be inserted as the numeric id in the video table (not NULL). Will this affect the query? I am using CodeIgniter and I tried with the following query, but

Join the discussion →

Input array is longer than the columns in this table

I have a csv_log_reader: DataTable csvData = new DataTable(); try { using (TextFieldParser csvReader = new TextFieldParser(csv_file_path)) { csvReader.SetDelimiters(new string[] { "," }); csvReader.HasFieldsEnclosedInQuotes = true; string[] colFields = csvReader.ReadFields(); foreach (string column in colFields) { DataColumn datecolumn = new DataColumn(column); datecolumn.AllowDBNull = true; csvData.Columns.Add(datecolumn); } while (!csvReader.EndOfData) { string[] fieldData = csvReader.ReadFields(); // Making empty value as null. for (int i = 0; i < fieldData.Length; i++) { if (fieldData[i] =

Join the discussion →

Encrypting Django User Model Fields

Is there any way Django provides us to Encrypt all / atleast fields like first_name, last_name, email_id of auth.User model just like how it does encrypts PASSWORD field before storing it into Database ? My Workaround: I have gone through documentation & few questions on StackOverflow, according to which it would be possible to inherit default BaseUser model & define our own myUser model the way we want, by defining the Custom Character Field which encrypts & decrypts characters. Problem with this is in my application, I have provided SEARCH option for easy access of fields which are character

Join the discussion →

What is Python built-in function "compile" used for?

I came across a built-in function compile today. Though i read the documentation but still do not understand it's usage or where it is applicable. Please can anyone explain with example the use of this function. I will really appreciate examples. From the documentation, the function takes some parameters as shown below. compile(source, filename, mode[, flags[, dont_inherit]])

Join the discussion →
Older stories