PL/SQL WEBSERVICE - https connection to
I would like to connect to a webservice for the help of PL / SQL to the
site based on the https protocol. Do you have any ideas what package you
use the UTL_DBWS or UTL_HTTP
Butay
Sunday, 1 September 2013
Can't understand error in this program for checking automorphic no.?
Can't understand error in this program for checking automorphic no.?
int a=0, b, c, e, n=25;
e=n;
while(n!=0)
{
n=n/10;
a++;
}
printf("%d",a);
b=e*e;
c=b%(pow(10,a));
if(c==e)
printf("automorphic");
For the line c=b%(pow(10,a)); compiler shows a error -"invalid operands of
types int' anddouble' to binary `operator%' "
int a=0, b, c, e, n=25;
e=n;
while(n!=0)
{
n=n/10;
a++;
}
printf("%d",a);
b=e*e;
c=b%(pow(10,a));
if(c==e)
printf("automorphic");
For the line c=b%(pow(10,a)); compiler shows a error -"invalid operands of
types int' anddouble' to binary `operator%' "
Saturday, 31 August 2013
what is the meaning of stable in zfile_stable - CZMQ
what is the meaning of stable in zfile_stable - CZMQ
CZMQ man page for zfile explains zfile_stable as:
// Check if file is 'stable'
CZMQ_EXPORT bool zfile_stable (const char *filename);
What is the meaning of stable? when a file is said to be stable?
CZMQ man page for zfile explains zfile_stable as:
// Check if file is 'stable'
CZMQ_EXPORT bool zfile_stable (const char *filename);
What is the meaning of stable? when a file is said to be stable?
phpmyadmin, import CSV-load date with line breaks?
phpmyadmin, import CSV-load date with line breaks?
I have the following problem.
I have a CSV file with articles (for joomla) that I want to import to my
server through phpmyadmin. Now after figuring out how to import date
format i came across my second problem, and that is how to import the
articles that is stored in a cell that is in a csv-load date file????
The problem is that when importing it, I don't see any line breaks in the
articles, not in joomla and not in the html code that sould be stored in
phpmyadmin
So I hope that somebody can help me with that Thanks in advance
I have the following problem.
I have a CSV file with articles (for joomla) that I want to import to my
server through phpmyadmin. Now after figuring out how to import date
format i came across my second problem, and that is how to import the
articles that is stored in a cell that is in a csv-load date file????
The problem is that when importing it, I don't see any line breaks in the
articles, not in joomla and not in the html code that sould be stored in
phpmyadmin
So I hope that somebody can help me with that Thanks in advance
basic scraping (with python): the source of the page doesn't have the info I see in the browser
basic scraping (with python): the source of the page doesn't have the info
I see in the browser
This is my first webscraping attempt, so please bear with me. (I put
Python in the title because that's the language I'm familiar with, but my
answer is more general than that, so please feel free to answer in
whatever language you'd like)
I'm trying to collect a few flight prices and travel times from Kayak
(http://www.kayak.com/flights). Say, I'd like to collect info on prices
from LA's LAX airport to New Yorks' LGA airport.
The Kayak website seems very convenient in that you write an address to
show results. For example:
http://www.kayak.com/flights#/LAX-LGA/2013-12-13/2014-01-05
gives prices for travels initiated on 2013-12-13 and with a return on
2014-01-05
I load it like this:
from urllib2 import urlopen
import BeautifulSoup as bs3
soup = bs3.BeautifulSoup(urlopen(
"http://www.kayak.com/flights#/LAX-LGA/2013-12-13/2014-01-05").read())
but then I don't see any price information! I checked the source of the
page too on Google Chrome and couldn't figure out where the prices and
travel times are.
I see in the browser
This is my first webscraping attempt, so please bear with me. (I put
Python in the title because that's the language I'm familiar with, but my
answer is more general than that, so please feel free to answer in
whatever language you'd like)
I'm trying to collect a few flight prices and travel times from Kayak
(http://www.kayak.com/flights). Say, I'd like to collect info on prices
from LA's LAX airport to New Yorks' LGA airport.
The Kayak website seems very convenient in that you write an address to
show results. For example:
http://www.kayak.com/flights#/LAX-LGA/2013-12-13/2014-01-05
gives prices for travels initiated on 2013-12-13 and with a return on
2014-01-05
I load it like this:
from urllib2 import urlopen
import BeautifulSoup as bs3
soup = bs3.BeautifulSoup(urlopen(
"http://www.kayak.com/flights#/LAX-LGA/2013-12-13/2014-01-05").read())
but then I don't see any price information! I checked the source of the
page too on Google Chrome and couldn't figure out where the prices and
travel times are.
java.lang.IllegalArgumentException when trying to run a clojure web application
java.lang.IllegalArgumentException when trying to run a clojure web
application
I'm trying to run a clojure web app I wrote using ring, compojure, hiccup,
and lein-ring, and when I run lein ring server, I get an exception.
java.lang.IllegalArgumentException: No implementation of method: :as-file
of protocol: #'clojure.java.io/Coercions found for class: clojure.l
ang.PersistentVector
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:541)
at clojure.java.io$fn__8496$G__8491__8501.invoke(io.clj:35)
at clojure.java.io$file.invoke(io.clj:413)
at leiningen.core.project$absolutize.invoke(project.clj:308)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.core$apply.invoke(core.clj:619)
at clojure.core$partial$fn__4190.doInvoke(core.clj:2396)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:619)
at clojure.core$update_in.doInvoke(core.clj:5587)
at clojure.lang.RestFn.invoke(RestFn.java:445)
at leiningen.core.project$absolutize_path.invoke(project.clj:314)
at clojure.core.protocols$fn__6034.invoke(protocols.clj:143)
at
clojure.core.protocols$fn__6005$G__6000__6014.invoke(protocols.clj:19)
at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31)
at clojure.core.protocols$fn__6028.invoke(protocols.clj:48)
at
clojure.core.protocols$fn__5979$G__5974__5992.invoke(protocols.clj:13)
at clojure.core$reduce.invoke(core.clj:6177)
at leiningen.core.project$absolutize_paths.invoke(project.clj:322)
at leiningen.core.project$init_profiles.doInvoke(project.clj:603)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at leiningen.core.project$read.invoke(project.clj:684)
at leiningen.core.project$read.invoke(project.clj:685)
at leiningen.core.project$read.invoke(project.clj:686)
at leiningen.core.main$_main$fn__1332.invoke(main.clj:256)
at leiningen.core.main$_main.doInvoke(main.clj:252)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:415)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.core$apply.invoke(core.clj:617)
at clojure.main$main_opt.invoke(main.clj:335)
at clojure.main$main.doInvoke(main.clj:440)
at clojure.lang.RestFn.invoke(RestFn.java:436)
at clojure.lang.Var.invoke(Var.java:423)
at clojure.lang.AFn.applyToHelper(AFn.java:167)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
The googling I've done shows two options, test suits not named properly,
or having multiple java source paths in my project.clj, both of which I've
checked, so I'm stumped.
Can someone please sift through the stack trace and point me in the right
direction? Thank you.
application
I'm trying to run a clojure web app I wrote using ring, compojure, hiccup,
and lein-ring, and when I run lein ring server, I get an exception.
java.lang.IllegalArgumentException: No implementation of method: :as-file
of protocol: #'clojure.java.io/Coercions found for class: clojure.l
ang.PersistentVector
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:541)
at clojure.java.io$fn__8496$G__8491__8501.invoke(io.clj:35)
at clojure.java.io$file.invoke(io.clj:413)
at leiningen.core.project$absolutize.invoke(project.clj:308)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.core$apply.invoke(core.clj:619)
at clojure.core$partial$fn__4190.doInvoke(core.clj:2396)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:619)
at clojure.core$update_in.doInvoke(core.clj:5587)
at clojure.lang.RestFn.invoke(RestFn.java:445)
at leiningen.core.project$absolutize_path.invoke(project.clj:314)
at clojure.core.protocols$fn__6034.invoke(protocols.clj:143)
at
clojure.core.protocols$fn__6005$G__6000__6014.invoke(protocols.clj:19)
at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31)
at clojure.core.protocols$fn__6028.invoke(protocols.clj:48)
at
clojure.core.protocols$fn__5979$G__5974__5992.invoke(protocols.clj:13)
at clojure.core$reduce.invoke(core.clj:6177)
at leiningen.core.project$absolutize_paths.invoke(project.clj:322)
at leiningen.core.project$init_profiles.doInvoke(project.clj:603)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at leiningen.core.project$read.invoke(project.clj:684)
at leiningen.core.project$read.invoke(project.clj:685)
at leiningen.core.project$read.invoke(project.clj:686)
at leiningen.core.main$_main$fn__1332.invoke(main.clj:256)
at leiningen.core.main$_main.doInvoke(main.clj:252)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:415)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.core$apply.invoke(core.clj:617)
at clojure.main$main_opt.invoke(main.clj:335)
at clojure.main$main.doInvoke(main.clj:440)
at clojure.lang.RestFn.invoke(RestFn.java:436)
at clojure.lang.Var.invoke(Var.java:423)
at clojure.lang.AFn.applyToHelper(AFn.java:167)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
The googling I've done shows two options, test suits not named properly,
or having multiple java source paths in my project.clj, both of which I've
checked, so I'm stumped.
Can someone please sift through the stack trace and point me in the right
direction? Thank you.
Is the GMT time zone is same all over world?
Is the GMT time zone is same all over world?
My server is running PHP. I am using gmtdate() function to inserting
records into my database from server. I just wonder whether time zone is
centralized by using gmatdate() function ?
Example:
One user creates entry from India and record is inserted into database
and
Second user create entry from USA/canada/france and record is inserted
into database.
Is that time will be same as I used gmtdate() function while inserting
record at server?
My server is running PHP. I am using gmtdate() function to inserting
records into my database from server. I just wonder whether time zone is
centralized by using gmatdate() function ?
Example:
One user creates entry from India and record is inserted into database
and
Second user create entry from USA/canada/france and record is inserted
into database.
Is that time will be same as I used gmtdate() function while inserting
record at server?
Subscribe to:
Comments (Atom)