Jake K. | 25 Jun 02:08 2015
Picon

lazy load http script inside https


Hello,

I am trying to lazy load a script using the the following inside my website which has the protocol set as HTTPS:

$.getScript('http://pathToMyScript.js')

Then I get the following error:

Mixed Content: The page at 'https://myPage/login' was loaded over HTTPS, but requested an insecure script 'http://pathToMyScript'. This request has been blocked; the content must be served over HTTPS.

How can I load HTTP content inside a HTTPS site?

PS: the script that I am trying to load is a third party script which won't work if the HTTPS protocol is attached to it.

Thanks

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Kevin Chen | 25 Jun 03:40 2015
Picon

Unspecified protobuf version

Hello, while I was doing my project, receiving this error message:
"This file was generated by an older version of protoc which is", 
and the portion of my code shows that:
2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION

Does anybody could tell me what's going wrong or how should I fix it? 

THX and with best regard! =)

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Eren Yıldız | 24 Jun 10:13 2015
Picon

Protobuff cannot get installed after uninstallation

Hi all,

I was having the error of


error
: undefined reference to 'google::protobuf::internal::kEmptyString'


and someone on the forum advised to delete everything regarding protobuff under /usr/local and /usr/lib and re-install 2.5.0 as my previous version was 2.6.1 and some files could still lurk and cause that error. I did so and deleted those files. And now when I try to reinstall the protobuff 2.5.0 I get errors.

This is my make command output:


make  all-recursive
make
[1]: Entering directory `/home/eren/Tools/protobuf-2.5.0'
Making all in .
make[2]: Entering directory `
/home/eren/Tools/protobuf-2.5.0'
make[2]: Leaving directory `/home/eren/Tools/protobuf-2.5.0'

Making all in src
make
[2]: Entering directory `/home/eren/Tools/protobuf-2.5.0/src'
make  all-am
make[3]: Entering directory `
/home/eren/Tools/protobuf-2.5.0/src'
make[3]: Nothing to be done for `all-am'
.
make
[3]: Leaving directory `/home/eren/Tools/protobuf-2.5.0/src'
make[2]: Leaving directory `
/home/eren/Tools/protobuf-2.5.0/src'
make[1]: Leaving directory `/home/eren/Tools/protobuf-2.5.0'






And this is make check output:

Making check in .
make
[1]: Entering directory `/home/eren/Tools/protobuf-2.5.0'
make  check-local
make[2]: Entering directory `
/home/eren/Tools/protobuf-2.5.0'
Making lib/libgtest.a lib/libgtest_main.a in gtest
make[3]: Entering directory `/home/eren/Tools/protobuf-2.5.0/gtest'

make
[3]: `lib/libgtest.la' is up to date.
make[3]: `
lib/libgtest_main.la' is up to date.
make[3]: Leaving directory `/home/eren/Tools/protobuf-2.5.0/gtest'

make
[2]: Leaving directory `/home/eren/Tools/protobuf-2.5.0'
make[1]: Leaving directory `
/home/eren/Tools/protobuf-2.5.0'
Making check in src
make[1]: Entering directory `/home/eren/Tools/protobuf-2.5.0/src'

make  check
-am
make
[2]: Entering directory `/home/eren/Tools/protobuf-2.5.0/src'
make  protoc protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test test_plugin zcgzip zcgunzip
make[3]: Entering directory `
/home/eren/Tools/protobuf-2.5.0/src'
make[3]: `protoc'
is up to date.
make
[3]: `protobuf-test' is up to date.
make[3]: `
protobuf-lazy-descriptor-test' is up to date.
make[3]: `protobuf-lite-test'
is up to date.
make
[3]: `test_plugin' is up to date.
make[3]: `
zcgzip' is up to date.
make[3]: `zcgunzip'
is up to date.
make
[3]: Leaving directory `/home/eren/Tools/protobuf-2.5.0/src'
make  check-TESTS
make[3]: Entering directory `
/home/eren/Tools/protobuf-2.5.0/src'
/home/eren/Tools/protobuf-2.5.0/src/.libs/lt-protobuf-test: error while loading shared libraries: libgtest.so.0: cannot open shared object file: No such file or directory
FAIL: protobuf-test
/home/eren/Tools/protobuf-2.5.0/src/.libs/lt-protobuf-lazy-descriptor-test: error while loading shared libraries: libgtest.so.0: cannot open shared object file: No such file or directory
FAIL: protobuf-lazy-descriptor-test
PASS
PASS: protobuf-lite-test
Testing output to zip...
Testing output to jar...
PASS
PASS: google/protobuf/compiler/zip_output_unittest.sh
+ TESTFILE=Makefile
+ ./zcgzip
+ gunzip
+ cmp - Makefile
+ + ./zcgunzipgzip


+ cmp - Makefile
PASS: google/protobuf/io/gzip_stream_unittest.sh
==========================================
2 of 5 tests failed
Please report to protobuf <at> googlegroups.com
==========================================




I really want to know what the heck is wrong with all these version mismatches, and why isn't there a solid uninstallation process, as it leads to inconsistencies to manually delete files. Besides, when I try to resolve one problem with one version, there occurs another one when I upgrade or downgrade. Simply the number of inconsistencies are unbelievably a lot.


Anyway, is there anyone who knows how to tackle this?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Eren Yıldız | 24 Jun 09:52 2015
Picon

error: undefined reference to 'google::protobuf::internal::kEmptyString' with the version 2.5.0

Hi all,

I am having a problem with my auto-generated files. As I am not supposed to edit these files, I do not know how to fix this error either. I am using Ubuntu 12.04, the version of protobuff I have is 2.5.0, and I installed it from source.

The .proto file I have is the following:

message PointMsg {
  required
float x = 1;
  required
float y = 2;
  optional
float z = 3;
  optional
string name = 4 [default=""];
 
  required
string sender = 5;
}

And the error I get is:

src-gen/Point.pb.h:334: error: undefined reference to 'google::protobuf::internal::kEmptyString'
src-gen/Point.pb.cc:131: error: undefined reference to 'google::protobuf::internal::kEmptyString'
src-gen/Point.pb.cc:132: error: undefined reference to 'google::protobuf::internal::kEmptyString'
src-gen/Point.pb.cc:141: error: undefined reference to 'google::protobuf::internal::kEmptyString'
/usr/local/include/google/protobuf/wire_format.h:296: error: undefined reference to 'google::protobuf::internal::WireFormat::VerifyUTF8StringFallback(char const*, int, google::protobuf::internal::WireFormat::Operation)'


It should be noted that this error disappears If I have upgrade the version to 2.6.1. However I cannot do that, since I have other files which give error when I do so. Simply, I have to stick to 2.5.0.

Any thoughts on how to resolve this?



Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Paul Baxter | 24 Jun 16:02 2015

Arena allocation with proto v2.x? - release vs syntax

I had thought arena allocation was available in latest v2.x releases, but the latest release 2.6.1 from October 2014 is just prior to adding arena allocation.

Is there to be a v2.x release with arena support supporting the additional C++ code generation?

Or is it intended to only be available in v3.x releases. Is the idea that it is available in v3.x releases when you need to set the proto *syntax* v2  i.e. an extended proto2 feature not supported by release stream for v2.x

Could you clarify the intent.

If so, perhaps it should be clarified that for certain features 'proto2 documentation' refers to proto2 syntax supported in v3 releases.

https://developers.google.com/protocol-buffers/docs/proto

Language guide (proto 2) - maybe reword to add (proto 2 syntax) and make clear in the text where a feature is implemented only in release stream 3.x


--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Aditi Dixit | 23 Jun 17:49 2015
Picon

Transfer contents between repeated fields

Hi,
How do I transfer contents between repeated fields?

a.set_MyField(b.Myfield()) doesn't seem to work

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Aditi Dixit | 23 Jun 13:34 2015
Picon

Transferring contents between repeated fields

Hi,
How do I transfer contents between repeated fields?
a.set_MyField(b.Myfield()) doesn't seem to work.

Regards
Aditi Dixit

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Val Goldring | 12 Jun 14:52 2015
Picon

Cannot build any version in specific RH6 environment

Hi, I tried to build version 2.6.1 and 3.0.0 alpha 2 Linux in C++ using:
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) , g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
and the same error seems to prevent installation from generating the Makefile, so later make returns:
make: *** No targets specified and no makefile found. Stop.
./configure output shows these strange missing features of C++ environment, that frankly are hard to believe:

checking for working memcmp... no
checking for working strtod... no
checking for pow... no
checking for pow in -lm... no
configure: WARNING: cannot find library containing definition of pow
checking for ftruncate... no
checking for memset... no
checking for mkdir... no
checking for strchr... no
checking for strerror... no
checking for strtol... no
checking zlib version... headers missing or too old (requires 1.2.0.4)
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -pthread is sufficient with -shared... yes
checking whether what we have so far is sufficient with -nostdlib... no
checking whether -lpthread saves the day... yes
checking the location of hash_map... 
checking for library containing sched_yield... no
configure: error: in /root/source/protobuf-2.6.1': configure: error: sched_yield was not found on your system Seeconfig.log' for more details.

About zlib missing headers, yum reports:
Package zlib-1.2.3-29.el6.x86_64 already installed and latest version
which means the installation is not found by ./configure script.

But sched_yield seems to be the final blow. I attached full config.log.

Can someone please help me understand and/or fix this?

Thank you.

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Attachment (config.log): application/octet-stream, 78 KiB
reetesh | 12 Jun 14:23 2015
Picon

Interface definition and Implementation - Protocol buffer

Hi ,

We need help on the following queries.

1. How to define and implement java interface in .proto file.
2. How to define Java Constant in .proto file.
3. Can we import java file in .proto file.

Example:-

Reetesh {

private static final int age = 40;
private List<IBook> book;

}

IBook is the interface.

Can somebody help us to create .proto file?

Regards,
Reetesh

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
dan bress | 15 Jun 18:12 2015
Picon

Streaming results from a repeated field in Java

If I have a protobuf that looks like this

message Table{
  required
Schema mySchema= 1;
  repeated Row myRows
= 2;
}

And the sender is sending me a Table structure with thousands of rows, I would like to be able to read the Schema structure into memory, then read each Row into memory one at a time, instead of all of them at once. Is there a way to do this using the Java API? If so can you share an example of how to do so?

Thanks!

Dan

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
reetesh | 12 Jun 15:01 2015
Picon

Java Interface Definition and Implementation

Hi ,

We need help on the following queries.

1. How to define and implement java interface in .proto file.
2. How to define Java Constant in .proto file.
3. Can we import java file in .proto file.

Example:-

Reetesh {

private static final int age = 40;
private List<IBook> book;

}

IBook is the interface.

Can somebody help us to create .proto file?

Regards,
Reetesh

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Gmane