porting Questions

5

Solved

I'm trying to convert some code from 2 to 3 and the following simple script import types from types import NoneType Results in ImportError: cannot import name NoneType How can I convert the...
Gaitskell asked 5/4, 2013 at 22:34

7

Solved

What is the equivalent of Linux's /proc/cpuinfo on FreeBSD v8.1? My application reads /proc/cpuinfo and saves the information in the log file, what could I do to get similar information logged on F...
Maghutte asked 3/11, 2010 at 2:39

5

Solved

_TCHAR* strGroupName = NULL; const _TCHAR* strTempName = NULL; //Assign some value to strTempName strGroupName = _tcschr(strTempName, 92) //C2440 I get an error at the above line while compilin...
Averment asked 16/6, 2009 at 5:37

9

Solved

I am trying to port a query from MySQL to SQL SERVER 2012. How do i write an equivalent for MySQL's substring_index()? MySQL SUBSTRING_INDEX() returns the substring from the given string before a...
Fetal asked 25/5, 2014 at 11:18

2

Solved

I'm porting a Linux C++03 application to Darwin OS X and have some code that reads the symbolic link at /proc/self/exe to determine the directory in which the executable running is located. How ca...
Crossly asked 26/3, 2014 at 23:46

7

I am trying to port an application to drive a device that uses an ftdi2332h chip from windows to linux. I installed the libftd2xx library on an ubuntu 10.04 system per these instructions. When I ...
Platysma asked 5/9, 2012 at 17:8

2

Solved

I'm encountering issues when trying to compile my C code on Win64. More specifically, the compiler cannot find the sys/mman.h header, which I understand is found in Unix environments only. I alre...
Nerissa asked 15/4, 2015 at 20:41

8

Not to long ago, someone told me that long are not 64 bits on 64 bit machines and I should always use int. This did not make sense to me. I have seen docs (such as the one on Apple's official site)...
Incandesce asked 21/12, 2008 at 14:10

10

I sell a C#/WPF application (targeting .net 3.0 at the moment) and people keep asking me for a Mac version. The application is a time tracking application with a good GUI, there isn't that much bu...
Sforza asked 24/2, 2009 at 8:47

6

Solved

George Marsaglia has written an excellent random number generator that is extremely fast, simple, and has a much higher period than the Mersenne Twister. Here is the code with a description: good ...
Brace asked 29/12, 2008 at 15:8

7

Solved

The only implementation of jq seems to be in C. Is there anything comparable in (browser-side) JavaScript? The reason I'm asking is basically to work out how much it's worth investing in jq - I ge...
Marthmartha asked 23/4, 2015 at 6:58

2

Solved

I'm porting a project from AngularJs to Vue3. In Angular we have a service component, which creates und supplies objects to components. The objects are automatically reactive, if they are used in a...
Crumpler asked 10/6, 2022 at 6:38

2

I'm working on a makefile rule and wish to unset the environment variable MAKEFILES before invoking make again recursively. On other BSD systems, I do it like this: env -u MAKEFLAGS $(MAKE) $(SUBD...
Abrahamabrahams asked 25/3, 2014 at 1:1

3

Is it possible to import a Confluence xml dump into Mediawiki? If so, any guidance will be appreciated. Thanks for you assistance!
Periphrasis asked 20/7, 2012 at 14:32

1

I am having trouble to convert Oracle syntax to H2 syntax: For example (Oracle): LOCK TABLE CAR_CHIP_ID_LOCK IN EXCLUSIVE MODE In H2 it results in a (syntax error) How do I change the oracle gram...
Rodriguez asked 13/7, 2015 at 18:1

10

Solved

I'm porting a Net Framework 4 dll to Net Core. When porting my unit tests project I get an exception running some specific tests (not all). System.IO.FileLoadException: Could not load file or as...
Pregnable asked 10/3, 2017 at 14:13

4

Solved

We are porting an ASP.NET MVC 4.x application to ASP.NET Core 3.1. The current application is using EF 6.x DB first approach. As a part of this migration we are going to use EF Core 3.1 as an alter...

4

I'm porting some C++ code to Android using NDK and GCC. The code basically runs. At one point, when debugging in Eclipse, the call Dabbler::Android::Factory* pFactory = new Dabbler::Android::Facto...
Outmaneuver asked 26/10, 2011 at 11:17

3

Solved

i have the basic webserver hello world app for nodejs on windows and it works on localhost. But when i test it from the internet it cannot connect. I set up port forwarding in my netgear router. Am...
Twodimensional asked 26/8, 2011 at 16:38

14

Solved

With some changes in the staffing at the office, the levels of C# expertise has dropped off precipitously and there are now more Java developers. It has gotten to the point where the higher-ups are...
Nuriel asked 11/4, 2009 at 19:1

2

Solved

A pointer * and a reference & in Rust share the same representation (they both represent the memory address of a piece of data). What's the practical differences when writing code though? When ...
Tourbillion asked 6/6, 2020 at 13:58

3

Solved

For studying purpose, I am trying to migrate this Java Command Pattern example to PHP: https://codereview.stackexchange.com/questions/52110/command-pattern-implementation As @simon commented, u...
Skyline asked 8/3, 2020 at 21:59

1

Solved

Rakudo version 2020.01 This does not compile. use v6; class N1 {} class T1 {} class G1 { has @.g is required where A1|Q1; } class Q1 { has $.q is required where N1|T1|G1; } class A1 { has ...
Contaminate asked 3/2, 2020 at 14:55

4

Solved

After I built the source code of android, I ran the following command and got the error. #fastboot -w flashall error: could not load android-info.txt I had successfully built the source code for...
Mealtime asked 1/5, 2011 at 3:19

0

Background: I have customized an AOSP distribution and created a custom OTA updater service to integrate with it. But whenever I call the updater service, the following error message is generated: ...
Girt asked 19/6, 2019 at 15:0

© 2022 - 2024 — McMap. All rights reserved.