text:
[Bug]object dataflowengineoss is not a member of package io.shiftleft

Describe the bug
I want to run joern --script test.scala target_code_cpg.bin
However, when I run this command, I met object dataflowengineoss is not a member of package io.shiftleft
To Reproduce
The code which produce the bug:
import io.shiftleft.dataflowengineoss.language._
import io.shiftleft.dataflowengineoss.queryengine.EngineContext

Desktop (please complete the following information):

OS: MACOS
Joern 1.1.1461
JDK 17

Additional context
I guess it is because I don't have the plugin  io.shiftleft.dataflowengineoss. However, I have downloaded it, but I don't know where I should place it.
I also tried to run joern --add-plugin, but it does not work.
What should I do?

replace shiftleft with joern and it should work:
import io.joern.dataflowengineoss.language._
import io.joern.dataflowengineoss.queryengine.EngineContext

yep, that should fix it. Closing. Feel free to reopen if there's still a problem.

repo: joernio/joern


text:
Update scalafmt-core to 3.7.6

About this PR
📦 Updates org.scalameta:scalafmt-core from 3.7.4 to 3.7.6
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (3.7.4).
You might want to review and update them manually.
.git-blame-ignore-revs

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scalameta", artifactId = "scalafmt-core" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, old-version-remains, commit-count:n:3

Superseded by #3072.

source: gharchive/pull-request

license_type: permissive

license_source: bigquery


text:
Does not build on OpenBSD (corrections included)

Appears to require gmake rather than make, which I resolved by invoking via correct name (didn't see any hints to do this).
The following:
DEPS       := $(shell find $(PWD)/deps -type f -printf "file://%p ")
does not work with BSD find (no -printf), changed to:
DEPS       := $(shell find $(PWD)/deps -type f -exec echo "file://{} " ;)
Similarly:
SOURCES    := $(shell find $(SRCDIR) -type f -name *.py -not -name 'test_')
does not work with BSD find (no -not), changed to:
SOURCES    := $(shell find $(SRCDIR) -type f ( -name *.py -and ! -name 'test_' ))
After making the above changes I was able to 'gmake' successfully on OpenBSD 4.8/macppc.

Not sure what this has to do specifically with this repo. My python skills aren't uber but shouldn't building this lib be done via easy_install? cc @joestump

He's talking about making the Makefile compatible with BSD. This is a valid bug I believe.

Cool, seems like relatively simple changes, what's needed to get this into a PR @chort ?

source: gharchive/issue

authors: chort jaitaiwan joestump

license: mit


text:
Need a logo

Need a logo for websocketd. A big one for the website, and a favicon.

I nominate myself as the worlds second worst designer, but anyway...

Thanks for the contribution. But no thanks. Just not my (completely subjective) taste.
Closing the issue - I don't want others to spend time on this.

http://www.designmantic.com/ tool come up with one interesting idea...

authors: asergeyev jasonhinkle joewalnes

repo: joewalnes/websocketd


text:
ee/gen ed class support

a user should be able to type !listclasses and see classes for cs, it, gen ed, ee

#144

repo: joey-colon/lion

license: MIT

license_source: github-api


text:
ac-change runs before model is updated?

ac-change seems to run before the model is updated.
Angular's ng-change runs after model update..
Doesn't it make sense to do the same as angular?

I've created a workaround for the problem. Don't know it is the most efficient but is works for what I need without changing too much =)
Add
"afterModelChange" :"&",

to the scope of the directive.
Add a watch to the confirmedItem
$scope.$watch("confirmedItem.text", function () {
                if ($scope.confirmedItem != null && $scope.confirmedItem.text != "" && typeof $scope.afterModelChange === 'function') {
                    $scope.afterModelChange();
                }
            }, true);

It makes this possible:
<ac-select after-model-change="DoYourThing()" ac-model="myModel" ac-options="item.ItemProperty for item in getItems()"></ac-select>

In the controller DoYourThing is called after model update, so $scope.myModel can be used in it.
$scope.myModel will contain the last selected item instead of the old one (which is the case with ac-change)

repo: john-oc/acute-select


text:
minItems, maxItems not supported

Generating runtypes from json schema:
{
  "title": "Example Schema",
  "type": "object",
  "properties": {
    "testArray": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "additionalProperties": false
}

This works.
However adding minItems (or maxItems) for array:
{
  "title": "Example Schema",
  "type": "object",
  "properties": {
    "testArray": {
      "type": "array",
      "minItems": 2,
      "items": {
        "type": "object"
      }
    }
  },
  "additionalProperties": false
}

I got error when running npx rungen:
InvalidOperationError: Expected to find a symbol.
    at Object.throwIfNullOrUndefined (/Users/xliu/workspaces/runtyping/node_modules/@ts-morph/common/dist/ts-morph-common.js:471:19)
    at Type.getSymbolOrThrow (/Users/xliu/workspaces/runtyping/node_modules/ts-morph/dist/ts-morph.js:17388:30)
    at Object.objectTypeGenerator [as default] (/Users/xliu/workspaces/runtyping/dist/typeWriter/object.js:9:10)
    at objectTypeGenerator.next (<anonymous>)
    at Object.generateOrReuseType [as default] (/Users/xliu/workspaces/runtyping/dist/typeWriter/generateOrReuseType.js:12:29)
    at generateOrReuseType.next (<anonymous>)
    at Object.unionTypeGenerator [as default] (/Users/xliu/workspaces/runtyping/dist/typeWriter/union.js:12:41)
    at unionTypeGenerator.next (<anonymous>)
    at Object.generateOrReuseType [as default] (/Users/xliu/workspaces/runtyping/dist/typeWriter/generateOrReuseType.js:12:29)
    at generateOrReuseType.next (<anonymous>)

Thanks for raising this. It's still a fairly new project so I expect to have missed a few things. Turns out it doesn't handle tuples yet, which is the root of this problem.

repo: johngeorgewright/runtyping


text:
Injection Plugin Build Failed

Getting the following errors when try to install the plugin via File->Install Plugins
/Users/quynhnguyen/Library/Application Support/Injection Plugin/XprobePlugin/XprobeSwift/XprobeSwift/XprobeSwift.swift:88:9: error: use of unresolved identifier ‘Xtrace’
        Xtrace.trace( bundle )
        ^~~~~~
/Users/quynhnguyen/Library/Application Support/Injection Plugin/XprobePlugin/XprobeSwift/XprobeSwift/XprobeSwift.swift:92:9: error: use of unresolved identifier ‘Xtrace’
        Xtrace.traceClass( aClass )
        ^~~~~~
/Users/quynhnguyen/Library/Application Support/Injection Plugin/XprobePlugin/XprobeSwift/XprobeSwift/XprobeSwift.swift:96:9: error: use of unresolved identifier ‘Xtrace’
        Xtrace.traceInstance( instance )
        ^~~~~~
/Users/quynhnguyen/Library/Application Support/Injection Plugin/XprobePlugin/XprobeSwift/XprobeSwift/XprobeSwift.swift:210:36: warning: conditional cast from ‘Any’ to ‘AnyObject’ always succeeds
                if let obj = value as? AnyObject {
                                   ^
/Users/quynhnguyen/Library/Application Support/Injection Plugin/XprobePlugin/XprobeSwift/XprobeSwift/XprobeSwift.swift:210:20: warning: non-optional expression of type ‘AnyObject’ used in a check for optionals
                if let obj = value as? AnyObject {
                   ^         ~~~~~~~~~~~~~~~~~~~
<unknown>:0: warning: ‘cacheParamsComputed’ is deprecated
<unknown>:0: warning: ‘cacheAlphaComputed’ is deprecated
<unknown>:0: warning: ‘keepCacheWindow’ is deprecated
<unknown>:0: error: ‘memoryless’ is unavailable
Metal.MTLCommandBufferError:55:14: note: ‘memoryless’ has been explicitly marked unavailable here
        case memoryless
             ^

** BUILD FAILED **

The following build commands failed:
/Users/quynhnguyen/Library/Application Support/Injection Plugin
	CompileSwift normal x86_64
	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

That’s not a build log I recognise as it seems to be building Injection and Xprobe inside it. How do you mean File/Install Plugins. Do you have the right version of injection App? http://johnholdsworth.com/injection.html
Then you don’t need to build.

Seem like I got the wrong version. You should probably update the link on this page
http://injectionforxcode.com/


text:
docs: slightly improved README grammar & added links

I'm not a native speaker but highly confident that this PR improves the readme's grammar. I also added a few links where I think it's helpful.

Look good to me, thank you!

authors: gekkedev johnsoncodehk

repo: johnsoncodehk/volar


text:
로드맵 이슈

안녕하세요.
현재 0.2.4 버전을 사용하고 있습니다.
현재 카카오 거리뷰가 정상적인 위치에서 실행되지 않고 특정 지점을 계속해서 로드하는 문제가 발생하고 있습니다.
라이브러리 파일 중 KakaoRoadMap의 내부 코드를 확인해보니 position이 new kakao.maps.LatLng(33.450701, 126.570667)으로 고정되어 있는데, 업데이트해주실 수 있을까요?

@Baebin 님, 해당 부분 center 값 동적으로 받아서 처리하도록 수정하였습니다.
0.2.6 버전 사용하시면 됩니다!

authors: Baebin johyunchol


text:
Fix: Remove unused composer.phar

This PR

[x] removes an apparently unused composer.phar

Thank you, @svpernova09!

repo: joindin/joindin-api


text:
feat: human readable locktime duration for fidelity bonds

Resolves #397.
Mostly used existing code from the old fidelity bond branch. 👴
~Moved out the time interval computation to an extra function but I don't really like it anymore since it gets super long at the call site.~ Also added a small addition to make sure to loop over the time units in the correct order, since it's not so clear if looping over Object.keys() always guarantees the order. So I figured manually sorting wouldn't hurt.
The tests are the same as on the old branch. I hope it works like this ~--might refactor the fb.time API tomorrow to make callsites a bit cleaner. 🧹~
📸

cc ABHISHEK-PANDEY2 ☝

Nice!
Only thing missing is passing the locale. If the language is changed to French, the phrase is still in English, even it would support the users locale.
Something like:
const { i18n } = useTranslation()
[...]
fb.time.humanReadableDuration({ [...], locale: i18n.resolvedLanguage || i18n.language })

But maybe there is a better way?

authors: dnlggr theborakompanioni

repo: joinmarket-webui/jam


text:
Dialog 추가 (Add Dialog)

꼭 에디터가 켜져 있는 상황이 아니더라도 번역 기능을 사용할 수 있도록 Dialog 기능 추가
(Add Dialog function to use translation function even if editor is not on)

0.0.10 버전에 추가

repo: jojoldu/translator


text:
Disable type validation

I've recently encountered some Kotlin code implementing Java Predicates as lamdas. At compile time Kotlin transforms the lamdas into static method names that contain special characters that are not allowed by Java standards (but allowed by JVM  specifications). Byte-Buddy agent seems to be very aggressive in the validation and "refuses" to modify methods with special characters.
This PR disables the type validation for the default agent.

@fioan89 Thank you

I released a new version

Thank you, @joke,  for the release!

Thank you @joke

authors: fioan89 joke tolasramona

repo: joke/spock-mockable


text:
🛑 Hastebin is down

In 85d2386, Hastebin (https://paste.jonasled.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Hastebin is back up in f08a68f.

repo: jonasled/status


text:
Missing Get.arguments and Get.parameters when keyboard show.

ATTENTION: DO NOT USE THIS FIELD TO ASK SUPPORT QUESTIONS. USE THE PLATFORM CHANNELS FOR THIS. THIS SPACE IS DEDICATED ONLY FOR BUGS DESCRIPTION.
Fill in the template. Issues that do not respect the model will be closed.
Describe the bug
Hello everybody, I have some problems with named routes arguments. So, for example I have pages Partner and PartnerForm.
Routes:
Partner /partners/view/:id
PartnerForm /partners/update
At first, I am on Partner page, then, I clicked on dropdownmenu and go to PartnerForm page. PartnerForm page has many textfields. When I click on TextField flutter rebuild my app and missing Get.arguments and Get.parameters on previous pages. What can I do to fix this?
Reproduction code
NOTE: THIS IS MANDATORY, IF YOUR ISSUE DOES NOT CONTAIN IT, IT WILL BE CLOSED PRELIMINARY)
example:
Routes.
GetPage(
        name: '/partner/view/:id',
        page: () => PartnerScreen.factory(),
        binding: PartnerBindings(),
      ),
      GetPage(
        name: '/partner/statuses',
        page: () => PartnerStatusesScreen.factory(),
        binding: PartnerStatusesBindings(),
      ),
      GetPage(
        name: '/partner/update',
        page: () => PartnerFormScreen.factory('Изменение контрагента'),
        binding: PartnerFormBindigns(),
      ),
      GetPage(
        name: '/partner/create',
        page: () => PartnerFormScreen.factory('Новый контрагент'),
        binding: PartnerFormBindigns(),
      ),

Bindings
class PartnerBindings extends Bindings {
  @override
  void dependencies() {
    final String tag = Get.parameters['id'];

    Get.lazyPut<PartnerController>(() => PartnerController(Get.find(tag: tag)), tag: tag);
    Get.lazyPut<PartnerViewModel>(() => PartnerViewModel(), tag: tag);

    Get.lazyPut<PartnerApi>(() => PartnerApi());
    Get.lazyPut<PartnerQuery>(() => PartnerQuery());
  }
}

Partner screen
class PartnerScreen extends MVCWidget<PartnerController, PartnerViewModel> {
  PartnerScreen({
    @required PartnerController controller,
    @required PartnerViewModel viewModel,
  }): super(
    controller: controller,
    viewModel: viewModel,
  );

  factory PartnerScreen.factory() {
    final String tag = Get.parameters['id'];

    return PartnerScreen(
      controller: Get.find(tag: tag),
      viewModel: Get.find(tag: tag),
    );
  }

  Widget build(_) { // }
}

To Reproduce
Steps to reproduce the behavior:

Open Partner page
Click dropdown menu
Select "update" item
Click on textfield.

Flutter Version:
[✓] Flutter (Channel stable, 2.2.2, on Linux, locale ru_RU.UTF-8)
• Flutter version 2.2.2 at /home/auramel/snap/flutter/common/flutter
• Framework revision d79295af24 (2 недели назад), 2021-06-11 08:56:01 -0700
• Engine revision 91c9fc8fe0
• Dart version 2.13.3
Getx Version:
get: ^4.1.4
Describe on which device you found the bug:
ex: Mi 9 SE
Minimal reproduce code
Provide a minimum reproduction code for the problem

Sorry, I'm stupid - problem was in Get.context. I'm using precacheImage in my ViewModel with context from Get.context, so flutter rebuild my app. Close, please, that issue.

@jonataslaw

Thanks! Closing

authors: Auramel jonataslaw

repo: jonataslaw/getx


text:
FutureBuilder / StreamBuilder with GetBuilder

Is there any restrictions on using FutureBuilder / StreamBuilder with GetX package?
Now I am experimenting with GetX package & seems all much more better & simpler than Provider package. Good job.
But I am confused when I try to use it with FutureBuilder. After moving my FutureBuilder to GetBuilder my app freezes.
Can you please provide with a correct example on how to use GetX with FutureBuilder or help with understanding why app freezes? Thanks
To Reproduce
main.dart
void main() {
  DI.init();
  runApp(App());
}

di.dart
class DI {
  static init() {
    /// Services
    Get.lazyPut<CounterService>(() => CounterService());
    Get.lazyPut<TestService>(() => TestService());

    /// Repositories
    Get.lazyPut<TestRepository>(() => TestRepository());
    Get.lazyPut<UserRepository>(() => UserRepository());
  }
}

services/test.dart
class TestService extends GetxController implements ServiceCRUD {
  static TestService get call => Get.find();
  final TestRepository _repository = Get.find();

  /// Get Tests list
  Future<List<Test>> getTestData({Map params}) async {
    List<Test> documents;

    await _repository.fetchDocuments(params).then((QuerySnapshot result) {
      documents = result.documents.map((doc) {
        print(doc.metadata.isFromCache ? "Test from CACHE" : "Test from NETWORK");
        return Test.fromMap(doc.data, doc.documentID);
      }).toList();
    });

    return documents;
  }}

repositories/test.dart
class TestRepository extends BaseRepository {
  bool synced = false;

  TestRepository() {
    ref = db.collection('test');
  }

  Future<QuerySnapshot> fetchDocuments(Map params) async {
    QuerySnapshot documents;

    await ref
        .orderBy('createdAt', descending: true)
        .getDocuments(source: synced == true ? Source.cache : Source.serverAndCache)
        .then((result) {
      documents = result;
      synced = true;
    }).catchError((error) {
      print('Error: $error');
    });

    return documents;
  }
}

WIDGET
          GetBuilder<TestService>(
            builder: (data) => FutureBuilder(
              future: TestService.call.getTestData(params: {}),
              builder: (BuildContext context, AsyncSnapshot snapshot) {
                if (!snapshot.hasData || snapshot.hasError) {
                  return Container(
                    child: Text('freeze'),
                  );
                }
                return ListView.builder(
                  shrinkWrap: true,
                  itemBuilder: (BuildContext context, int index) {
                    return Container(
                      child: Text('item'),
                    );
                  },
                );
              },
            ),
          ),

Flutter Version:
Flutter 1.17.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 1ad9baa8b9 (2 weeks ago) • 2020-06-17 14:41:16 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4
Get Version:
get: ^3.2.1
Describe on which device you found the bug:
IOS

To be honest with you, the way you are using, GetBuilder is doing basically nothing.
When you called the controller using the static method call you didn't used the instance that was created on GetBuilder. You can remove GetBuilder from there and the TestService.call will still work
But this is not the reason why is freezing.
I created a piece of code that looked like yours (yours was not truly reproducible 😅 ) and it worked.
import 'package:flutter/material.dart';
import 'package:get/get.dart';

void main() {
  DI.init();
  runApp(
    GetMaterialApp(
      home: Scaffold(
        body: Center(
          child: FutureBuilder(
            future: TestService.call.getTestData(params: {}),
            builder: (BuildContext context, AsyncSnapshot snapshot) {
              if (!snapshot.hasData || snapshot.hasError) {
                return Container(
                  child: Text('freeze'),
                );
              }
              return ListView.builder(
                shrinkWrap: true,
                itemCount: snapshot.data.length,
                itemBuilder: (BuildContext context, int index) {
                  return Container(
                    child: Text(snapshot.data[index]),
                  );
                },
              );
            },
          ),
        ),
      ),
    ),
  );
}

class DI {
  static init() {
    /// Services
    Get.lazyPut<TestService>(() => TestService());

    /// Repositories
    Get.lazyPut<TestRepository>(() => TestRepository());
  }
}

class TestService extends GetxController {
  static TestService get call => Get.find();
  final TestRepository _repository = Get.find();

  /// Get Tests list
  Future<List<String>> getTestData({Map params}) async {
    await Future.delayed(Duration(microseconds: 3000));
    List<String> list = _repository.getRandomList();

    return list;
  }
}

class TestRepository {
  List<String> getRandomList() {
    return List.generate(10, (index) => "text $index");
  }
}

I supposed that GetBuilder something like Consumer in Provider package. I write GetBuilder there only for widget reload when new item added to firebase.
I try your piece of code, remove GetBuilder but app freezes too.

To use GetBuilder, you must use update (), just as you would use notifyListeners () with Provider.
To use GetX, you need to bindStreams and that's it.
In both cases, you don't need a FutureBuilder, so I agree with the comment from @Nipodemos, You should choose one or the other, and it makes no sense to use both together.
I saw that you are confusing the use of then with await a little, and I would say that you should adopt one of the two models, mixing the two can lead to errors, but just for the sake of example, I will take your example the way that is.
For your example to be compile you need to make some modifications:
class TestService extends GetxController implements ServiceCRUD {
  static TestService get call => Get.find();
  final TestRepository _repository = Get.find();
  List<Test> documents; // move it

  @override
  onInit() => getTestData(params: {}); // add this

  /// Get Tests list
  void getTestData({Map params}) async {
        await _repository.fetchDocuments(params).then((QuerySnapshot result) {
      documents = result.documents.map((doc) {
        print(
            doc.metadata.isFromCache ? "Test from CACHE" : "Test from NETWORK");
        return Test.fromMap(doc.data, doc.documentID);
      }).toList();

      update(); // and this
    });

  }
}

on your widget:
  GetBuilder<TestService>(
                builder: (data) => (data.documents == null)
                    ? Container(
                        child: Text('freeze'),
                      )
                    : ListView.builder(
                        shrinkWrap: true,
                        itemCount: data.documents.lenght,
                        itemBuilder: (BuildContext context, int index) {
                          return Container(
                            child: Text('item'),
                          );
                        },
                  ),
             ),

It's working. Thank you!

authors: Nipodemos jonataslaw yarmel


text:
Get.reset Not working

ATTENTION: DO NOT USE THIS FIELD TO ASK SUPPORT QUESTIONS. USE THE PLATFORM CHANNELS FOR THIS. THIS SPACE IS DEDICATED ONLY FOR BUGS DESCRIPTION.
Fill in the template. Issues that do not respect the model will be closed.
Describe the bug
I try Get.reset() but it's not working
To Reproduce
Steps to reproduce the behavior:

call function Get.reset()

Expected behavior
to reset all value of my controller
Flutter Version:
flutter 2.20.4
Getx Version:
get: ^3.12.1
Describe on which device you found the bug:
IOS/ Android

Hi, Get.reset is working properly on the tests, and also on my applications. Please provide a reproduction code if you think something is not working properly.
https://github.com/jonataslaw/getx/blob/master/packages/get_instance/test/get_instance_test.dart

thank you for your response, yeah that's true it's work I  made a mistake in my code structure.

authors: TheGhostDevlopper jonataslaw


text:
Add "empty" status to rx_notifier as in many cases we need to show empty animation/image/...  instead of a list

In many cases we need to show a particular widget when the response object has an empty list, In the real world responseObject is a kind of object that describes the fetched data's schema and one of received data might be a list that can be null or empty, and in such situation, we can show an animation, image or widget to inform user there is no contact/order/etc...
Like:

I've added isEmpty status to handle this situation more easily (instead of checking data inside widget, we check it inside controller).

Hi, thanks for your contribution.
Looks good to me.
I'll merge

authors: alizera jonataslaw


text:
Simplify installation

Create a Makefile to build and install the program.

Solved with #3

repo: jonathanabennett/gtd-review


text:
x86_64 zip mscv file infection warnings.

Latest x86_64-pc-windows-msvc warning of trojan infection in edge, chrome, windows defender and trendmicro

This is a false positive, unsure where it is originating from

authors: JCoutee jonathanmorley

repo: jonathanmorley/oktaws


text:
work when requiring via npm package #40

pointing at the commonjs entry point fixes the problem

@jonathantneal can you let me know if you want any changes to this PR?

Thanks, @mreinstein

authors: jonathantneal mreinstein

repo: jonathantneal/flexibility


text:
🛑 BA - Bosnia and Herzegovina is down

In 0ee61ec, BA - Bosnia and Herzegovina (https://www.skyshowtime.com/ba/help/) was down:

HTTP code: 404
Response time: 1108 ms

Resolved: BA - Bosnia and Herzegovina is back up in ab921e3 after 9 minutes.

repo: jonesyriffic/gsp-sst


text:
이정안님 mentoring meeting 23, 2023-10-09

오후 11시, google meet

다른 일정으로 시간 맞추기가 어려워 일정 변경

진행 완료

https://github.com/fkdl0048/Mentoring-Project/issues/103

repo: jongfeel/Activity


text:
Inheriting from UISideMenuNavigationController gives Fatal error: Use of unimplemented initializer 'init(nibName:bundle:)' for class 'SideMenu.UISideMenuNavigationController'

I have read the guidelines for contributing and I understand

[ ] My issue is happening in the 6.0.0 of SideMenu
[ ] My issue was not solved in the README.
[ ] My issue can not be answered on stackoverflow.com.
[ ] My issue is not a request for new functionality that I am unwilling to build and contribute with a pull request.
[ ] My issue is reproducible in the demo project.

Describe the bug
App is crashing in init method of UISideMenuNavigationController, if New class is inherited from UISideMenuNavigationController & used.
To Reproduce
Steps to reproduce the behavior:

Inherite from UISideMenuNavigationController
2.Initialise customs navigation controller
App will crash on init
Fatal error: Use of unimplemented initializer 'init(nibName:bundle:)' for class 'SideMenu.UISideMenuNavigationController'

As per stack overflow answers for error *unimplemented initializer 'init(nibName:bundle:)' for class * we must override initWithNibName method but subclass of UISideMenuNavigationController is not allowed to override initWithNibName as it is not overridden in UISideMenuNavigationController.

ok, rollback to 5.0.3 until fix this...

waiting fix

Fixed in 6.0.2.

repo: jonkykong/SideMenu


text:
Can't find phantomjs or execute phantomjs

Overview
My PHP Code says error occurred.
PHP Fatal error:  Uncaught JonnyW\PhantomJs\Exception\ProcedureFailedException: Error when executing PhantomJs procedure - File does not exist or is not executable: bin/phantomjs in /mnt/smbSSD_128GB/WebStorm/test-phantomjs/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/Procedure/Procedure.php:138
Stack trace:
#0 /mnt/smbSSD_128GB/WebStorm/test-phantomjs/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/Procedure/ProcedureValidator.php(84): JonnyW\PhantomJs\Procedure\Procedure->run(Object(JonnyW\PhantomJs\Procedure\Input), Object(JonnyW\PhantomJs\Procedure\Output))
#1 /mnt/smbSSD_128GB/WebStorm/test-phantomjs/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/Procedure/ProcedureValidator.php(61): JonnyW\PhantomJs\Procedure\ProcedureValidator->validateSyntax('\n\n/**\n * Set up...')
#2 /mnt/smbSSD_128GB/WebStorm/test-phantomjs/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/Procedure/ProcedureCompiler.php(107): JonnyW\PhantomJs\Procedure\ProcedureValidator->validate('\n\n/**\n * Set up...')
#3 /mnt/smbSSD_128GB/WebStorm/test-ph in /mnt/smbSSD_128GB/WebStorm/test-phantomjs/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/Procedure/Procedure.php on line 138

Code
<?php
require_once 'vendor/autoload.php';

use JonnyW\PhantomJs\Client;

$client = Client::getInstance();

$request = $client->getMessageFactory()->createRequest('http://jonnyw.me', 'GET');
$response = $client->getMessageFactory()->createResponse();

$client->send($request, $response);

if ($response->getStatus() === 200) {
    echo $response->getContent();
}

Tree
.
├── bin
│   └── phantomjs [chmod 777]
├── composer.json
├── composer.lock
├── test.php
└── vendor
    ├── autoload.php
    ├── composer
    ├── jakoch
    ├── jonnyw
    ├── symfony
    └── twig

Version
PHP 7.1.0RC6 (cli) (built: Nov  9 2016 09:51:59) ( NTS )
php-phantomjs latest
Why this php code doesn't work?

Try setting an absolute path to your PhantomJS executable.
$client = Client::getInstance();
$client->getEngine()->setPath('/path/to/phantomjs');

If that doesn't work then try installing PhantomJS manually - http://phantomjs.org/download.html

@jonnnnyw Sorry for the late reply.
Thanks reply and solve this problem.

update to "jakoch/phantomjs-installer": "2.1.1-p08", see patch https://github.com/jonnnnyw/php-phantomjs/pull/149
use helper class PhantomBinary - https://github.com/jakoch/phantomjs-installer#phantombinary,
see patch https://github.com/jonnnnyw/php-phantomjs/pull/155

Have merged this in. Just running tests and will be released in v6.0.

This
$client->getEngine()->setPath(dirname(__FILE__).'/bin/phantomjs.exe');
fix the issue for me.

hi
i'm getting this error on CentOS 7 and non of them fixed it i don't know what is wrong whit it. Whe i run it by terminal it is fine but when i run on the webservice it gives me the error.
`    <?php
require 'vendor/autoload.php';
use JonnyW\PhantomJs\Client;

try {
$client = Client::getInstance();
$client->getEngine()->setPath('/var/www/html/meteos/bin/phantomjs');

`
do have any suggestion ?

if you are using Composer, you can fix this error using this code line:
$client->getEngine()->setPath('vendor/bin/phantomjs');

if you are using Composer, you can fix this error using this code line:
$client->getEngine()->setPath('vendor/bin/phantomjs');

authors: AryaRDI jakoch jonnnnyw rluisr salvatorecapolupo zhilevan

repo: jonnnnyw/php-phantomjs


text:
CL install error on 0.8.0

Hey!
Just wanted to install the newest version (0.8.0), however I get
 Cannot open include file: 'emlpy_common.hpp': No such file or directory
Is that file missing, or is this an error on my side?
Full log output (click)

Collecting emlearn
  Using cached https://files.pythonhosted.org/packages/10/7a/bc4f241a34dfc608d1ec1259b8fe5cc5d588e58a43be06e2475cf66863c3/emlearn-0.8.0.tar.gz
Requirement already satisfied, skipping upgrade: pybind11>=2.2 in c:\users\UserName\appdata\roaming\python\python36\site-packages (from emlearn) (2.2.4)
Requirement already satisfied, skipping upgrade: numpy>=1.14.0 in c:\anaconda3\lib\site-packages (from emlearn) (1.15.4)
Building wheels for collected packages: emlearn
  Building wheel for emlearn (setup.py) ... error
  Complete output from command c:\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\UserName\\AppData\\Local\\Temp\\pip-install-koeyjk7s\\emlearn\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\UserName\AppData\Local\Temp\pip-wheel-i7yw98rb --python-tag cp36:
  c:\anaconda3\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.6
  creating build\lib.win-amd64-3.6\emlearn
  copying emlearn\bayes.py -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\cgen.py -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\common.py -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\convert.py -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\net.py -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\signal.py -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\trees.py -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\__init__.py -> build\lib.win-amd64-3.6\emlearn
  running egg_info
  writing emlearn.egg-info\PKG-INFO
  writing dependency_links to emlearn.egg-info\dependency_links.txt
  writing requirements to emlearn.egg-info\requires.txt
  writing top-level names to emlearn.egg-info\top_level.txt
  reading manifest file 'emlearn.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'emlearn.egg-info\SOURCES.txt'
  copying emlearn\eml_audio.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_bayes.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_benchmark.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_common.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_fft.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_fixedpoint.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_iir.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_net.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_test.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_trees.h -> build\lib.win-amd64-3.6\emlearn
  copying emlearn\eml_vector.h -> build\lib.win-amd64-3.6\emlearn
  running build_ext
  building 'eml_trees' extension
  creating build\temp.win-amd64-3.6
  creating build\temp.win-amd64-3.6\Release
  creating build\temp.win-amd64-3.6\Release\bindings
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iemlearn/ -Ic:\anaconda3\Include -IC:\Users\UserName\AppData\Roaming\Python\Python36\Include -Ic:\anaconda3\include -Ic:\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpbindings/eml_trees.cpp /Fobuild\temp.win-amd64-3.6\Release\bindings/eml_trees.obj /EHsc /DVERSION_INFO=\"0.8.0\"
  eml_trees.cpp
  bindings/eml_trees.cpp(24): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
  bindings/eml_trees.cpp(24): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
  bindings/eml_trees.cpp(39): warning C4267: '=': conversion from 'size_t' to 'int32_t', possible loss of data
  bindings/eml_trees.cpp(54): warning C4244: 'initializing': conversion from 'const pybind11::ssize_t' to 'int32_t', possible loss of data
  bindings/eml_trees.cpp(54): warning C4244: 'initializing': conversion from 'const pybind11::ssize_t' to 'const int32_t', possible loss of data
  bindings/eml_trees.cpp(75): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
  C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\anaconda3\libs /LIBPATH:c:\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" /EXPORT:PyInit_eml_trees build\temp.win-amd64-3.6\Release\bindings/eml_trees.obj /OUT:build\lib.win-amd64-3.6\eml_trees.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\bindings\eml_trees.cp36-win_amd64.lib
     Creating library build\temp.win-amd64-3.6\Release\bindings\eml_trees.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\bindings\eml_trees.cp36-win_amd64.exp
  Generating code
  Finished generating code
  building 'eml_audio' extension
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iemlearn/ -Ic:\anaconda3\Include -IC:\Users\UserName\AppData\Roaming\Python\Python36\Include -Ic:\anaconda3\include -Ic:\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpbindings/eml_audio.cpp /Fobuild\temp.win-amd64-3.6\Release\bindings/eml_audio.obj /EHsc /DVERSION_INFO=\"0.8.0\"
  eml_audio.cpp
  c:\users\UserName\appdata\local\temp\pip-install-koeyjk7s\emlearn\emlearn\eml_common.h(50): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
  C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1191): note: see declaration of 'getenv'
  c:\users\UserName\appdata\local\temp\pip-install-koeyjk7s\emlearn\emlearn\eml_common.h(51): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
  C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1191): note: see declaration of 'getenv'
  emlearn/eml_fft.h(59): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
  emlearn/eml_fft.h(60): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
  emlearn/eml_fft.h(73): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
  c:\users\UserName\appdata\local\temp\pip-install-koeyjk7s\emlearn\emlearn\eml_vector.h(119): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
  emlearn/eml_audio.h(76): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data
  emlearn/eml_audio.h(80): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
  emlearn/eml_audio.h(80): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data
  emlearn/eml_audio.h(106): warning C4244: 'initializing': conversion from 'float' to 'int', possible loss of data
  emlearn/eml_audio.h(106): warning C4244: 'initializing': conversion from 'float' to 'const int', possible loss of data
  bindings/eml_audio.cpp(14): fatal error C1083: Cannot open include file: 'emlpy_common.hpp': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for emlearn
  Running setup.py clean for emlearn
Failed to build emlearn
Installing collected packages: emlearn
  Found existing installation: emlearn 0.5.1
    Uninstalling emlearn-0.5.1:
      Successfully uninstalled emlearn-0.5.1
  Running setup.py install for emlearn ... error
    Complete output from command c:\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\UserName\\AppData\\Local\\Temp\\pip-install-koeyjk7s\\emlearn\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\UserName\AppData\Local\Temp\pip-record-t8w6saws\install-record.txt --single-version-externally-managed --compile:
    c:\anaconda3\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.6
    creating build\lib.win-amd64-3.6\emlearn
    copying emlearn\bayes.py -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\cgen.py -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\common.py -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\convert.py -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\net.py -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\signal.py -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\trees.py -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\__init__.py -> build\lib.win-amd64-3.6\emlearn
    running egg_info
    writing emlearn.egg-info\PKG-INFO
    writing dependency_links to emlearn.egg-info\dependency_links.txt
    writing requirements to emlearn.egg-info\requires.txt
    writing top-level names to emlearn.egg-info\top_level.txt
    reading manifest file 'emlearn.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'emlearn.egg-info\SOURCES.txt'
    copying emlearn\eml_audio.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_bayes.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_benchmark.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_common.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_fft.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_fixedpoint.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_iir.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_net.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_test.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_trees.h -> build\lib.win-amd64-3.6\emlearn
    copying emlearn\eml_vector.h -> build\lib.win-amd64-3.6\emlearn
    running build_ext
    building 'eml_trees' extension
    creating build\temp.win-amd64-3.6
    creating build\temp.win-amd64-3.6\Release
    creating build\temp.win-amd64-3.6\Release\bindings
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iemlearn/ -Ic:\anaconda3\Include -IC:\Users\UserName\AppData\Roaming\Python\Python36\Include -Ic:\anaconda3\include -Ic:\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpbindings/eml_trees.cpp /Fobuild\temp.win-amd64-3.6\Release\bindings/eml_trees.obj /EHsc /DVERSION_INFO=\"0.8.0\"
    eml_trees.cpp
    bindings/eml_trees.cpp(24): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
    bindings/eml_trees.cpp(24): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
    bindings/eml_trees.cpp(39): warning C4267: '=': conversion from 'size_t' to 'int32_t', possible loss of data
    bindings/eml_trees.cpp(54): warning C4244: 'initializing': conversion from 'const pybind11::ssize_t' to 'int32_t', possible loss of data
    bindings/eml_trees.cpp(54): warning C4244: 'initializing': conversion from 'const pybind11::ssize_t' to 'const int32_t', possible loss of data
    bindings/eml_trees.cpp(75): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\anaconda3\libs /LIBPATH:c:\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" /EXPORT:PyInit_eml_trees build\temp.win-amd64-3.6\Release\bindings/eml_trees.obj /OUT:build\lib.win-amd64-3.6\eml_trees.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\bindings\eml_trees.cp36-win_amd64.lib
       Creating library build\temp.win-amd64-3.6\Release\bindings\eml_trees.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\bindings\eml_trees.cp36-win_amd64.exp
    Generating code
    Finished generating code
    building 'eml_audio' extension
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iemlearn/ -Ic:\anaconda3\Include -IC:\Users\UserName\AppData\Roaming\Python\Python36\Include -Ic:\anaconda3\include -Ic:\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpbindings/eml_audio.cpp /Fobuild\temp.win-amd64-3.6\Release\bindings/eml_audio.obj /EHsc /DVERSION_INFO=\"0.8.0\"
    eml_audio.cpp
    c:\users\UserName\appdata\local\temp\pip-install-koeyjk7s\emlearn\emlearn\eml_common.h(50): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1191): note: see declaration of 'getenv'
    c:\users\UserName\appdata\local\temp\pip-install-koeyjk7s\emlearn\emlearn\eml_common.h(51): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1191): note: see declaration of 'getenv'
    emlearn/eml_fft.h(59): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
    emlearn/eml_fft.h(60): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
    emlearn/eml_fft.h(73): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
    c:\users\UserName\appdata\local\temp\pip-install-koeyjk7s\emlearn\emlearn\eml_vector.h(119): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
    emlearn/eml_audio.h(76): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data
    emlearn/eml_audio.h(80): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
    emlearn/eml_audio.h(80): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data
    emlearn/eml_audio.h(106): warning C4244: 'initializing': conversion from 'float' to 'int', possible loss of data
    emlearn/eml_audio.h(106): warning C4244: 'initializing': conversion from 'float' to 'const int', possible loss of data
    bindings/eml_audio.cpp(14): fatal error C1083: Cannot open include file: 'emlpy_common.hpp': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

    ----------------------------------------
  Rolling back uninstall of emlearn
  Moving to c:\users\UserName\appdata\roaming\python\python36\site-packages\eml_audio.cp36-win_amd64.pyd
   from C:\Users\UserName\AppData\Local\Temp\pip-uninstall-jvnmg8kz\eml_audio.cp36-win_amd64.pyd
  Moving to c:\users\UserName\appdata\roaming\python\python36\site-packages\eml_bayes.cp36-win_amd64.pyd
   from C:\Users\UserName\AppData\Local\Temp\pip-uninstall-jvnmg8kz\eml_bayes.cp36-win_amd64.pyd
  Moving to c:\users\UserName\appdata\roaming\python\python36\site-packages\eml_net.cp36-win_amd64.pyd
   from C:\Users\UserName\AppData\Local\Temp\pip-uninstall-jvnmg8kz\eml_net.cp36-win_amd64.pyd
  Moving to c:\users\UserName\appdata\roaming\python\python36\site-packages\eml_trees.cp36-win_amd64.pyd
   from C:\Users\UserName\AppData\Local\Temp\pip-uninstall-jvnmg8kz\eml_trees.cp36-win_amd64.pyd
  Moving to c:\users\UserName\appdata\roaming\python\python36\site-packages\emlearn-0.5.1-py3.6.egg-info
   from c:\users\UserName\appdata\roaming\python\python36\site-packages\~mlearn-0.5.1-py3.6.egg-info
  Moving to c:\users\UserName\appdata\roaming\python\python36\site-packages\emlearn\
   from c:\users\UserName\appdata\roaming\python\python36\site-packages\~mlearn
Command "c:\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\UserName\\AppData\\Local\\Temp\\pip-install-koeyjk7s\\emlearn\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\UserName\AppData\Local\Temp\pip-record-t8w6saws\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\UserName\AppData\Local\Temp\pip-install-koeyjk7s\emlearn\

Hi again! :D Thank you for reporting.
The file was indeed missing from the Python source packages. This has now been fixed in emlearn 0.8.1. I need to start using emlearn from PyPI instead of git to catch these things...
I also fixed some Linux-isms in the tests, so now we are back to green on Appveyor/Windows again.

great! thank's for the quick fix. Now I can get going exporting my DecisionTrees :))

authors: jonnor skjerns

repo: jonnor/emlearn


text:
logger.debug('...') calls don't work when level is set to logger.DEBUG

logger.debug('...') calls are NOT printed when level is set to logger.DEBUG when using v1.4.1.
logger.info('...') and above are printed.
With v1.3.0 it works fine.
This is the basic functionality of a logger, if this doesn't work than it's pretty much useless :P
For the project where I'm using it I'm writing my code in TypeScript and compiling it with latest version of webpack, it might be relevant.
Will be using v1.3.0 until this issue is resolved.
Thanks!

Hi, sorry to see you are experiencing problems.
I think this might be an environmental issue as this test case looks like it covers your repro case above?
To help debug this further could you let me know which browser you are using?
Thanks

I'm using Chrome Version 61.0.3163.91 (Official Build) (64-bit) (latest version at the time of writing).
The test code looks correct, could you try running it in Chrome?
But nevertheless I doubt it is an environmental issue since the v1.3.0 works as expected and v1.4.1 has this issue.
My guess is that changes that were made for the later version are cause of it.

Ah ok, I think I know what the problem might be. v1.4 of js-logger introduced a change which rows l routed DEBUG level messages through to console.debug() when that method is present.
Is it possible that your console log filter setting in Chrome Developer Tools is filtering these messages out?

@jonnyreeves that was it.
By default Chrome only shows INFO messages and above, it has to be explicitly selected to show DEBUG and browser specific messages from a dropdown menu:

I guess this is how it is supposed to work form now on.
Thanks for helping out!

authors: jonnyreeves pavle-goloskokovic

repo: jonnyreeves/js-logger


text:
need help to install fmod godot4 integration.

Followed your Setup guide (readme.md) and it seem to work... I am lost after compiling Godot (I think) The first sign that something is not correct is  ...Configure FMOD by visting Project Settings/Fmod.   I don't have FMOD under Project settings. What could have been gone wrong?

Sorry for the late response.
Make sure Advanced Settings is enabled in Project Settings. In the next release, the FMOD Config won't require this.

authors: jordigcs smallebrug


text:
IAM profile lacks the permissions to clean up ENIs in a VPC

fixes #119

Thank you very much! Have merged https://github.com/jorgebastida/gordon/pull/141/files as it contains the same changes.

authors: ahl jorgebastida

repo: jorgebastida/gordon


text:
Didn't get the obfuscated value

Hi,
I have tried to obfuscate my sql, but it's dumps with the same value.
require "triki"

obfuscator = Triki.new({
  "people" => {
    "email"                     => { :type => :email, :skip_regexes => [/^[\w\.\_]+@my_company\.com$/i] },
    "crypted_password"          => { :type => :fixed, :string => "SOME_FIXED_PASSWORD_FOR_EASE_OF_DEBUGGING" },
    "bank_account"              => { :type => :fixed, :string =>  ->(row : Triki::RowAsHash) { "#{row["bank_account"].to_s[0..4]}#{"*" * (row["email"].to_s.size - 5)}".as(Triki::RowContent) } },
    "name"                      => :name,
    "full_address"              => :address,
    "bio"                       => { :type => :lorem, :number => 4 },
    "relationship_status"       => { :type => :fixed, :one_of => ["Single", "Divorced", "Married", "Engaged", "In a Relationship"] },
  }
})

obfuscator.fail_on_unspecified_columns = true # if you want it to require every column in the table to be in the above definition
obfuscator.globally_kept_columns = %w[id] # if you set fail_on_unspecified_columns, you may want this as well

obfuscator.obfuscate(STDIN, STDOUT)

this is my obfuscator.cr file
mysqldump -c --add-drop-table --hex-blob -u user -pPassword databse | crystal obfuscator.cr > obfuscated_dump.sql
Here is my sql data:
-- MySQL dump 10.13  Distrib 8.0.37, for Linux (x86_64)
--
-- Host: localhost    Database: test
-- ------------------------------------------------------
-- Server version	8.0.37-0ubuntu0.22.04.3

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `people`
--

DROP TABLE IF EXISTS `people`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `people` (
  `id` int NOT NULL AUTO_INCREMENT,
  `email` varchar(60) NOT NULL,
  `crypted_password` varchar(32) NOT NULL,
  `bank_account` int NOT NULL,
  `name` varchar(20) NOT NULL,
  `full_address` varchar(256) NOT NULL,
  `bio` text NOT NULL,
  `relationship_status` varchar(70) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `people`
--

LOCK TABLES `people` WRITE;
/*!40000 ALTER TABLE `people` DISABLE KEYS */;
INSERT INTO `people` (`id`, `email`, `crypted_password`, `bank_account`, `name`, `full_address`, `bio`, `relationship_status`) VALUES (1,'p.raj@gmail.com','vghbdj54-gbh=nj@%^gvbcd',456123588,'Pratush','cfvghbjn fvghb gbhnj','gvdgb hcb hbh','SINGLE');
/*!40000 ALTER TABLE `people` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2024-07-15 20:09:52

Please help me out where i'm wrong. Thanks

Looks I broke it in version 0.3.1, I'll check further, but it's definitely working on 0.3.0 or lower.
Will add an integration test to catch this regression ( I guess in the parser )

I spotted the bug, need to change a bit things and write an integration test catching this, as this is a major issue.
Thanks for reporting it.

Pushed version 0.3.2  let me know if this works for you.

Fixed by https://github.com/josacar/triki/commit/8289c9e329a95c6041faa705039c5db895b8e20d

authors: josacar pratushraj

repo: josacar/triki


text:
Edit button for course and stream on their pages

When lecturers and admins are on the page of a course (e.g. /course/2022/S/mycourse) or stream(e.g. /w/mycourse/42) they might want to edit the content. Having a button redirecting them to the appropriate admin page would be nice.

I'd like to work on this! For now I'm assigning it to myself for the time being. If anyone wants to work on it aswell, feel free to message me and I'll look for something else.

authors: atakeskinn joschahenningsen

repo: joschahenningsen/TUM-Live


text:
It appears the maximum width of the angled images is 1500px

Tested in Chrome 49 at work, the angled image is only 1500px wide, so a hard edge is visible on one side for widescreen monitors.

Although ugly this is intended. The mixin default width for the shape is set at 1500px.
You can set the width to a larger screen size if needed using the width parameter.
For example, increasing to shape to 3000px wide would be:
@include angled-edge('inside bottom','upper left',#EE3924,3000);

Maybe we should up the default size though and/or put a container on the demo. Thanks!

authors: chrisblakley josephfusco

repo: josephfusco/angled-edges


text:
update UML

update UML so it matches the class hierarchy and attributes in main branch

The classes we use:
buzzerClass --> parkingLot
RFIDclass --> parkingLot
ultrasonicsensorclass --> parkingLot
parkingLot --> window(GUI)
window(GUI) --> main

updated

authors: andreacicovic irbahanifah joshakbar14


text:
Staff name_first_japanese concatenated with name_last_japanese

https://anilist.co/api/staff/111135
{
  "id": 111135,
  "name_first": "Risa",
  "name_last": "Taneda",
  "name_first_japanese": "梨沙 種田",
  "name_last_japanese": "",
  "info": "Hometown: Tokyo, Japan",
  "language": "Japanese",
  "favourite": false,
  "image_url_lge": "http://cdn.anilist.co/img/dir/person/reg/16135.jpg",
  "image_url_med": "http://cdn.anilist.co/img/dir/person/med/16135.jpg",
  "dob": null,
  "website": null
}

I expect it would return in this way:
{
  "id": 111135,
  "name_first": "Risa",
  "name_last": "Taneda",
  "name_first_japanese": "梨沙",
  "name_last_japanese": "種田",
  "info": "Hometown: Tokyo, Japan",
  "language": "Japanese",
  "favourite": false,
  "image_url_lge": "http://cdn.anilist.co/img/dir/person/reg/16135.jpg",
  "image_url_med": "http://cdn.anilist.co/img/dir/person/med/16135.jpg",
  "dob": null,
  "website": null
}

It's confusing to use first name and last name in both english and japanese. Because Japanese put their surname as first name. I'd suggest to use surname and given name in APIv2

Any updates on this issue?

Oh sorry yeah I'll make this change for v2. Will have to stay as is in v1 as this is a work around for some issues with our recent database changes.

Here is my work around for the moment (javascript)
let token = staff.name_first_japanese.replace(/ +/, ' ').split(' ');
if (token.length === 2) {
  staff.name_first_japanese = token[1];
  staff.name_last_japanese = token[0];
}

authors: joshstar soruly

repo: joshstar/AniList-API-Docs


text:
new returns for downloadSong function

The DownloadSong function could return some options beyond of audio name, example an  type ReadableStream.
example
const ytdlMp3 = new YtdlMp3(URL_VIDEL);

ytdlMp3.downloadSong();
ytdlMp3.readStream();

This is a good idea. I was considering doing a refactor one of these days, but I just don't have the time at the moment. If I end up doing that, I will implement. In the mean time, feel free to make a PR I will merge this into main for sure if it is helpful for you and others.

This is not happening for the time being unless someone makes a PR

authors: HenrrySilva joshunrau


text:
Signing Guppy for MacOS

This is something we've spoken about on Gitter, but I thought I'd create an issue so that we can track it.
When downloading Guppy now on MacOS, the app won't open if you double-click it:

Savvy users will know that they can right-click and "open" to get around this. While aspiring programmers are more often than not still proficient with using computers, there is certainly still a subset who will be blocked by this. We want Guppy's onboarding to be as low-friction as possible.
This involves the purchase of an Apple Developer account, which I purchased a few days ago. I will begin setting up code signing shortly.
More info:
https://electronjs.org/docs/tutorial/code-signing

If you are interested, I have a script to automatically sign and create a new release on GH when pushing a branch named __release-production-COMMIT_SHA in https://github.com/kactus-io/kactus.
The gist is to

store the .p12 on a private repo, download it and add it to the circleCI (or travis) keychain (https://github.com/kactus-io/kactus/blob/master/script/setup-macos-keychain)
do the previous step only on the CI and if it's not a fork (https://github.com/kactus-io/kactus/blob/master/script/build.ts#L66-L71)
build and sign the app (https://github.com/kactus-io/kactus/blob/master/script/build.ts#L132)
zip the app
create a draft release, upload the zip, publish the release (https://github.com/kactus-io/kactus/blob/master/script/github.ts)

Thanks @mathieudutour! Interesting idea to have a hook on specific branch names. Thanks for sharing, will look into that once the initial version is signed.

authors: joshwcomeau mathieudutour

repo: joshwcomeau/guppy

license: ISC


text:
Edit the svg to change the values of the highlighted element

Good morning, how could you edit the lighting of the svg strokes or when you do, do not re-edit and return to its original values if I scroll or remove the scroll. I am calculating some width and height values once the element has been illuminated to edit it, then I create again the string of the svg path’s d attribute to change it with jquery but then if the scroll changes or if the illuminated element is a select, if I select one of your options it also returns to its original values.

@Dazava What drastic changes do you want to apply to the SVG that this is necessary?
You have control over the basic properties such as the color, and border-radius. You also can use CSS to select the SVG and overwrite any properties you want to overwrite that are supported by CSS.

authors: Dazava josias-r


text:
Pull Request #1

Pushing all changes to players, teams, rosters, and transactions in fantasy_sport.py as well as tests to tests.py. Not all functions work, will open individual issues to fix remaining bugs

Hello @unpairestgood , i have checked your pull request a lil bit. I'm gonna merge it within the day. Thanks again for what you do. This is a very good job :+1: . Keep it up buddy. By the way i'm gonna try the fix the test which doesn't pass.
Have a good day,

By the way, since you have rights on the project, you should be able to merge your own pull request. So, whenever you feel that everything is fine, don't hesitate to merge your pull requests.

Thanks! I'm still getting comfortable with using git, hopefully it'll become second-nature soon enough. I will also check out Landscape and Coveralls and merge when appropriate.

Don't worry it will, I'm sure of that. You can even create your own accounts on those services if you want, then add your forked repository. Having a github account is enough to subscribe to those kind of services. Hope it helped

authors: josuebrunel unpairestgood

repo: josuebrunel/yahoo-fantasy-sport


text:
Trace source of atom updates

Discussed in https://github.com/jotaijs/jotai-devtools/discussions/135

Originally posted by kevinschaich April 11, 2024
When your state becomes large enough, effects tend to overlap – especially in applications with a lot of visual/input interactions (mouse movement, tracking positions of elements on the screen, dragging and dropping, etc). This can lead to render loops that can be hard to track down. If you have 10 buttons/sliders/keyboard shortcuts that all perform the same state update, it's really time consuming to figure out which one of them is causing issues.
Redux devtools has a nice feature that lets you "trace" the source of updates:

I think this would be a nice addition to the devtools, perhaps in the Time Travel tab behind a (default off) feature flag or setting.

I made some progress on this today. Looked into how Redux devtools is making it work – they create a new error stack and get the call stack, e.g.:
const trace = new Error().stack

However that gets us a lot of junk including stuff from React/Next/Webpack etc. so we'll need to clean it up.
Just a few lines of filters got me extremely close to what we'd need to support a v0 in Devtools:
    store.sub(CodeEditorCodeAtom, () => {
        const trace = new Error().stack
            ?.split('\n')
            .filter(
                (line) =>
                    !line.includes('vanilla.mjs') &&
                    !line.includes('react-dom-client.development') &&
                    !line.includes('<anonymous>') &&
                    !line.includes('atom-provider') &&
                    !line.includes('react.mjs'),
            )
            .join('\n')

        console.group('CodeEditorCodeAtom modified.')
        console.log('New Value:', store.get(CodeEditorCodeAtom))
        console.log(trace)
        console.groupEnd()
    })

And indeed on line 117 of BlockEditorHeader:
setCode(blockFile.content as string)

repo: jotaijs/jotai-devtools


text:
Added self link to "included"

Using inflector.cs from RavenDB for pluralization

Can you give an example of how this would affect api responses? To be honest I'm not too keen on pulling in a dependency like this, because I'd have to maintain it going forward. It will be easier if you can demonstrate exactly why you need this.

I'm trying to provide the canonical Url for the included resource. See
highlight below.
{
"data": {
"type": "product",
"id": 6664,
"attributes": {
"name": "1708",
"slug": "alfred-angelo-1708",
"season": null,
"price-mode": null,
"price": 1049,
"accounting-class": null,
"discontinue-date": null,
"description-html": null,
"image-ids": [
24970,
24971,
24972
],
"rating": null,
"review-count": null,
"recommend-count": null,
},
"relationships": {
"designer": {
"links": {
"self": "
http://localhost:45857/products/6664/relationships/designer/",
"related": "http://localhost:45857/products/6664/designer/"
},
"data": {
"type": "designer",
"id": 108
}
},
"categories": {
"links": {
"self": "
http://localhost:45857/products/6664/relationships/categories/",
"related": "http://localhost:45857/products/6664/categories/"
},
"data": [
{
"type": "category",
"id": 3185
}
]
}
}
},
"included": [
{
"type": "designer",
"id": 108,
"attributes": {
"name": "Alfred Angelo",
"slug": "alfred-angelo",
"description-html": null,
"image-id": null
},
"links": {
"self": "http://localhost:45857/designers/108"
}
},
{
"type": "category",
"id": 3185,
"attributes": {
"name": "Bridal Gowns",
"slug": "bridal-gowns",
"menu-text": null,
"description-html": null,
"image-id": null
},
"links": {
"self": "http://localhost:45857/categories/3185"
}
}
],
"links": {
"self": "http://localhost:45857/products/6664"
}
}
On Tue, Oct 20, 2015 at 12:33 PM, Jouke van der Maas <
notifications@github.com> wrote:

Can you give an example of how this would affect api responses? To be
honest I'm not too keen on pulling in a dependency like this, because I'd
have to maintain it going forward. It will be easier if you can demonstrate
exactly why you need this.
—
Reply to this email directly or view it on GitHub
https://github.com/joukevandermaas/saule/pull/13#issuecomment-149641541.

Makes sense, that's a valid use case. I'll have to think about and test this a bit more, to make sure this will not limit future api extensions for link generation. I have a branch for that, but I had not gotten to pluralization just yet.
I think whatever pluralization scheme is used, it must be compatible with the default Ember Data configuration, given that this is the most likely use case for Saule in general. I'll need to investigate more before I merge this.

authors: corfor joukevandermaas

repo: joukevandermaas/saule


text:
How can I get the result in the Activity where I scan the qrCode?

The sample shows that we could get the result via method onActivityResult() in MainActivity, but I want get the result directly, how can I do that? Thanks ^^

@Immortelle0411
Your problem seems like #147
Hope this will work for you.

repo: journeyapps/zxing-android-embedded


text:
🛑 JENKINS is down

In 8fcc5e8, JENKINS ($JENKINS_URL) was down:

HTTP code: 503
Response time: 6989 ms

Resolved: JENKINS is back up in acd32ad.


text:
remove jcenter() , fixes deprecations in the building process of servers

And Updated Gradle to 7.0.2

This will fail to build as the org.jetbrains.kotlinx:kotlinx-dom package is only available on jcenter. I am also perfectly capable of bumping the gradle wrapper myself when I deem appropriate, and have done so already on the current dev branch.

authors: jpenilla tofikarz

repo: jpenilla/Toothpick


text:
🛑 TripleR is down

In 05237ea, TripleR (https://tripler.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TripleR is back up in 753364d after 12 minutes.


text:
🛑 Origin Hubs is down

In 78ea699, Origin Hubs (https://originhubs.com) was down:

HTTP code: 500
Response time: 9027 ms

Resolved: Origin Hubs is back up in 8b09926 after 30 minutes.


text:
🛑 Maharaja NC is down

In c9786b4, Maharaja NC (https://maharajanc.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Maharaja NC is back up in 274a94d after 11 minutes.


text:
🛑 Patagonia EMR is down

In 0aeab62, Patagonia EMR (patagoniaemr.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Patagonia EMR is back up in c7e1579 after 26 minutes.

repo: jpleasants/upptime


text:
[maintainers] Tests are broken in GitHub actions

Describe the bug
Tests seem to be broken in this repos GitHub actions. This has actually been a long standing problem I haven't had a ton of time to dive into. Let's see if we can get the tests to run in GitHub actions so that we have a good signal for contributors.
To Reproduce
Notice that tests aren't working in contributor PRs: https://github.com/jpmcb/prow-github-actions/pull/51
or in bot PRs: https://github.com/jpmcb/prow-github-actions/pull/50
Expected behavior
Tests to run successfully without error if tests are corrects

I am seeing this error intermittently on my local machine too, and then rerunning the tests sometimes would result in that flake passing. It's not reproducing tonight though.
I could submit a PR with some extra try/catch and debug statements around the call to cp.execSync and when that test fails in CI, hopefully it will point to what is going wrong.
https://stackoverflow.com/a/62151340

That's a great idea - let's start there! 👏🏼

I figured it out! That test relies on the current GitHub event name, and that is populated via the environment variable GITHUB_EVENT_NAME. When you run locally, that's unset. When you run the workflow in the context of the push, it's set to push, which isn't handled by main.ts, so it hits the default case and returns "not yet supported". But when the workflow is run in a PR, that env var is set to "pull_request" which is an event that main tries to handle, and so it fails in a different spot because the test is missing all of the normal setup to actually run the prow github action's logic.
I'll have a PR to fix the test shortly.

authors: carolynvs jpmcb

repo: jpmcb/prow-github-actions


text:
version of java

I have the latest version of java. But jpype requests java SE 6 as default version when running startJVM. It alerts me to install java SE 6 from a website in a dialogue-box. Can I use the installed java instead of downloading a new one?
$ java --version
openjdk 13 2019-09-17
OpenJDK Runtime Environment (build 13+33)
OpenJDK 64-Bit Server VM (build 13+33, mixed mode, sharing)
PS: my system is macOS 10.13.6

It sounds like some sore of interaction between the stubs on your os and jpype.  Jpype is definitely not making a request for Java 6.  It wouldn’t even run with Java 6 because the jars in JPype are build for Java 7 or later.  Most likely calling for Java is hitting a stub which says the default Java in the path is “install java SE 6”.
I recommend that you set your JAVA_HOME environment variable to the appropriate location and it should run fine.

It sounds like some sore of interaction between the stubs on your os and jpype. Jpype is definitely not making a request for Java 6. It wouldn’t even run with Java 6 because the jars in JPype are build for Java 7 or later. Most likely calling for Java is hitting a stub which says the default Java in the path is “install java SE 6”. I recommend that you set your JAVA_HOME environment variable to the appropriate location and it should run fine.

Thank you very much. I found the stub
    def _pre_vm7_path(self):
        """
        Returns the previous constant JVM library path:
        '/System/Library/Frameworks/JavaVM.framework/JavaVM'
        """
        return '/System/Library/Frameworks/JavaVM.framework/JavaVM'

/System/Library/Frameworks/JavaVM.framework/JavaVM is a link, link to a JavaVM (/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM) but the executable file does not work probably. I will re-link it to my java, instead  of correcting the source code.

authors: Freakwill Thrameos

repo: jpype-project/jpype


text:
Jpython

This is a PR which is intended to create a jpython executable that handles all the control over lifespan of Python and Java.
Highlights:

arguments of type -X and -D are passed to the JVM currently up until -- so we should be able to direct which VM is getting the options.
Java imports are active at the start so no need to import them separately.
Python main and Java main threads are isolated.   Java main waits in destroy state until Python completes then attempts orderly freeing of resources.
We can create threads for OSX apphandler so we should be able to avoid gui lock.

Problems:

I have been unable to catch all of the different ways that Python exits and thus some like "quit()" are currently bypassing proper such down routines.
We need to convince py installer to place the exe in the bin directory which is not intuitive.
Py_RunMain is finalizing the Python VM rather than returning control so that we can shut it down safely at a defined point.
atexit routine are running from Python at the end of Py_RunMain end rather than when the JVM is being destroyed.
There was a weird stack corruption during development which was forcing the order of items a lot.   I have no idea the source.  It seems that the JPype initialization must happen on the main thread, but there is no good reason for this.

I am going to need assistance from @pelson on the install issues and other for the AppHandler logic.   I need assistance from Python developers on how the operate Py_RunMain without it bypassing the proper shutdown order and finalizing before the application completes.

No this is not the same as epypj.  With epypj the goal was to build a java library in which python was accessable as java code.  That would mean you could use matplotlib directly from java or spawn a python subshell.  It required that we call asm to convert python libraries into subs that java a compiled language could link against.  The reason it couldn't move forward was to test the thousands of potential entry points from java calling python required some serious user community help as my laboratory would not fund it, and declined to authorize me to work on it personally by declining to sign the python contributor agreement.
Jpython is simpler.  It is simply a binary in which the order of python and java startup is defined.  Both virtual machines start at the same time, have the same lifetime and hopefully end at the same time.  The direction of the bridge is the same from python to java.  It can do some nicer things like get apple gui thread going.
The point of this is to remove the need for JForward and other ackwardness in which one machine is running and the other is not.  I could do the same with a jpython module style like say "pip" but the entry point if java without a real executable requires starting python then calling spawn which starts a second copy of python with the jvm going.
Epype could do this same task by simply having a simple main in the jar calling java and launching the python main as one statement.  But without epypj this is the best I can do.  Java cant call python currently in a meaningful way, and fighting the conflicts in packaging systems is posing serious problems.  We are losing users because osx released incompatible java and python versions.  Which given i can't access such a messed up machine (mixed architectures and mixed security flags) is a serious drag to this project as users think it is the duty of jpype to somehow fix a major companies deployment problem.

The main installation issue is placing the binary in the python install location (ie like executable python modules) such that it is treated no different than others.  IE follows a virtual env install etc.
At some point disttools in python was actually intended to support binaries.  I found the linker stubs with EXECUTABLE flags meaning it was a planned use case.  But the flag is almost inaccessable and the new system is getting farther and farther from allowing general purpose code.  Thus it it is not at all clear how to tell the manifest that one piece belongs in the bin directory.

The other fundemental problem we have is packaging in general, though not the subject of this PR.  The only system for getting python and java together is conda.  And it isn't clear that is working on OSX.  It should be possible for any java and python to work with jpype.  (And if python had just a little more support we could build a python version agnostic support library, but that is hung up on me writting a pep).   But that is failing in practice.
As for the goals of this PR the idea is to get rid of the need to start the JVM or control its lifespan.  Many users requested it in the past.  We have the current and on going problem that starting the JVM is a one shot thing, and as modules using Java as a backend all start the JVM they are all fundimentally incompatible.  Though as I only use JPype with code I have written (being mainly a Java user) I can only take shots in the dark as to how to solve it.

Thanks for all the details. From my perspective, as I already hinted at in my last comment, I'm quite strongly against the idea of a new JPype Python executable (jpython) the main reason being that it changes JPype from being a Python package which integrates into the standard Python environment, to being a semi-Python implementation.
To clarify that (strong) view a bit, imagine we wanted to use a Jupyter notebook, and use some JPype stuff... do I need to make a JPype jpython kernel, such that it guarantees that when the interpreter starts-up, the JVM also is started? Another example (already given) - what about combining this with other embedded Python interpreters (e.g. spark, gdb/pdb, blender, qt designer, etc).
One major concern from my perspective is that the normal JPype workflow would become a second citizen to jpython - you've already given an example where we would potentially no longer look for a solution to JForward because in jpython it "just works" :tm: (because the JVM is already running).

From a technical perspective, I don't know how I would go about packaging such an executable. Perhaps I would make my life simple and simply ship a bash script which launches the jpython executable found in the package's directory (in site-packages).

Let’s be clear what this binary is for.   If an application is launching JavaFX or swing, or your module would deadlock on OSX, and needs to be able to guarantee that the JVM and the Python lifespans are completely tied together, then jpython is the correct choice.   If someone wants to build more stuff around that environment that is their choice, but certainly not one I make.
Packages such as that are very hard for me to support currently.   We provided a work around that relaunches the Python main and starts the Apphelper.   But no one uses it because it is very clunky to change the Python main thread during operation, and I can’t direct people on how to use it because I don’t have access to any machines that would use it.  It is doubly a kludge because most people want code that works the same on many machines and not just OSX.    While I can call a machine to build a job, I can’t interact with one and thus I can’t actually fix those graphical deadlock issues.    The psuedobinary is the next best in which we provide an environment that works for those modules.  (assuming someone can get the right threading pattern)
I personally don’t have much use for jpython as JPype started once in my application is all that I need.  Thus, there is not much of a chance that the standard entry point would ever be second class.   I am not going back and changing my thousands of simulation scripts to require something else.
JForward is however another issue which is trying to work around those modules that don’t follow standard order or simply require the JNI be up to operate.   At best JForward is a work around because there are only certain actions.  But there are huge problems with JForward:

You can’t check what the forward is for (java object, java class, java enum, java int, etc) so you blindly plow forward far from the location where the problem occurred.  The reporting problem may be solvable if you capture the state of Python at the time it was called then direct the user back to the error.  Further, it introduces the problems that you get with mock.   This is catastrophic if type of the object doesn’t match as the polymorph won’t work.  This lack of safe operation really soured me when I was working on it.   In theory, one could resolved this by using a Python based class loader to read the symbols out of   jar classes directly rather than while the JVM was live.    But that means having a jar reader, module reader, class reader, and symbol decode written in C or Python available.   Were this pre Java 9 where it was just the jar/class, it may be doable, but modules are another beast.
It requires mutilation of the Python type tables to upgrade the object.   This one is serious unless one knows the type of the symbol to forward.   I would like to get to the point that JPype is simply using the common API and messing with the internals.   As you have already seen in the past my time is tied to gov’t funding which in turn is subject to some very unreliable characters doing things like passing budgets.   The deeper that we muck in the Python internals the less likely JPype will ever work for pypy or other python implementations.  And it will break when Python releases new versions.   If we had other maintainers that understood the inner working well enough to cover for my periods of absence such that JPype could follow new Python versions it may be okay, but that has not developed.
It may be unstainable.   Polymorphing objects is black magic now that Python has changes the object layout to place stuff before and after the python object head.  Only having “exactly” the same layout will work going forward.   Thus, even if I got it working with today’s Python, it is likely to break 3 versions from now and may never be repairable.   This is a horrible outcome.   Unless I got some assurance that polymorph is part of Python design (and there is a supported CPython API call to do it safely), I don’t see how I can support it.
Python is actively working to hide the internals of their objects preventing the mutilation or polymorphism that JPype needs to support this.   Thus, the situation is getting worse not better.

So, what are the alternatives if someone is using two modules that are using JPype that both want to start the JVM.

Support JForward for a period and then abandon it when Python pulls the rug out from us.
Try to breakup starting like pyjnius where you import in a config module, set it up, then startJVM automatically on “import jpype”.   This is a violation of Python policies (import isn’t supposed to do actions) and it fails to address the issue as when module 2 which also uses JPype starts then it can’t push in its classpath.  Given that would break all my scripts it is a non-starter.
Supply a pseudo-python binary that forces the classpath issue back onto the user.   Now the modules need to have a line to skip startJVM() if the JVM is already running and JVM flags are defined at start of process (meaning it doesn’t matter what order)
Supply an exec trick .py script in which starting the JVM is done by launching a new Python.  (works with standard python binary scripts but now you launch 2 copies of Python with twice as much chance of things going wrong.)
Go the route of epypj in which Java launches Python.   Same effect as the pseudopython but adds the additional hurtle that now you are dealing with Java distribution system and not the Python one.  Doable, but notable worse in some fronts.
Go Graalvm in which both Python and Java live in the same virtual machine.   If it worked well, I would go this route, because there are so many intractable problems with memory management with two garbage collectors.   But unless this becomes the Python main it will always be second class.
Join Jython and make an integrated Python/Java version.

None of these are palatable.    But given the options, which one seems most supportable?
My ordered preference would be

Epypj – because it allows calling Python and creating Python subshells from within Java.   Being able to call matplotlib as Java code would make porting python code to Java easier.  (Benefits me directly)
Jpython – because if it solves those problems for the users, it means less issue reports that I can’t solve.  (Benefits me indirectly)
JForward – distant third because it means more problems and more maintenance.   I can work to get it going, but I will need someone willing to put in the time to solve the “what object am I forwarding issue.”

As far as Jupyter notebooks go, I believe that you “can” specify jpython to use it, but that does not mean should.   That is no different than just placing “import jpype; jpype.startJVM()” as the top line of the script for that application.   As Jupyter doesn’t require the threading control and isn’t going to let you spawn javafx, why would someone do that?   I would recommend against that in the documentation.    I understand your fear that jpython would mean abandoning JPype as a module, but that is not my intent.  As for all those others that embed Python, the JPype module option (assuming it works there) would be the preferred option.
Having the jpython would mean someone would write a module that is incompatible with an untied Python/Java machine, and that would be incompatible with embedded machines.  But that isn’t much different than the current case in which almost every JPype using module is incompatible with every other JPype using module.    Most modules that use it are “heavy wrappers” that hide the JVM entirely.
Mind you I would very much like a real Python/Java hybrid plugin VM system rather than completely process tied like we have now.   If I could split the machines in such as way that they were two processes and still had shared memory access with the same interface as JPype I would do so in a heartbeat.   In such a system, JPype is a python module creates a JVM object which represented another process which talks to the JVM via JNI.  JNI is a galactic pain in the a** and there are many times that I would rather be able to spawn sub jvms for a task (which is another way to have two modules use jvm as they would each have their own JVM copy).    Unfortunately, this option is even less portable.  For threading each attachJVM would need to spawn a server thread in the other process to server requests.  Further,  I have to directly call memory paging system to make it so that we can have shared pages between the processes that virtually map over those that JNI give me (or be forced to copy the entire page between).   It was sufficiently sketchy that I abandoned that project after a few weeks.   It appears that given JNI didn’t supply me with the “shadow this array here” option that I would have to rewrite portions of JavaVM to make it work to reasonable performance levels.  Further, it does nothing to solve the reference loop problem.

authors: Thrameos pelson


text:
Incorrect exercise: [courseId=grammar-intro_eng][lessonNumber=12][exerciseId=3859]

Description
If possible, please provide a brief description of what is wrong with this exercise.
Doesn't xu not make sense here?
Diagnostics information (do not remove)

Exercise identifier: [courseId=grammar-intro_eng][lessonNumber=12][exerciseId=3859]
Exercise payload: {"sentences":[{"text":"From what language are you translating?","lojbanic":false}],"title":"Translate specifying temporal tenses","type":"typing"}
Attempted solution: {"text":"do ca fanva fo ma"}
Attempted solution was classified as correct: no
Validation payload: {"canonicalAnswer":"xu do ca fanva fo ma","correct":false}

"xu" is used to ask if the sentence is true, and roughly translates to "Is is true that ...?" So "xu do fanva" -- "Are you translating?"
"ma", on the other hand, is used to ask what sumti could fill the sentence to make it true, and roughly translates to "what". So "do fanva ma" -- "What are you translating?"

Fixed, thanks!

authors: jqueiroz yanqui-uxo


text:
Bug? Inconsistent number-format behaviour for fixed locale, depending on cldr-data loaded.

Summary
I'm seeing some strange behaviour with globalize, where number-format behaviour is changing for a fixed locale, depending on what locale data I load from the cldr-data package.
Specifically, I've been loading all locale data from the cldr-data package (example program below). The output of the number formatter differs depending on whether the "cldr-data-coverage": "full" flag is used.
For example, for Globalize('en').numberFormatter()(1234567.891):

"cldr-data-coverage": "full" flag used -> 1234567.891 (which looks wrong!)
no flag -> 1,234,567.891 (which looks correct)

I'm reporting this as a bug, as it seems very strange behaviour!
From my investigations, it's only affecting the following locales:
['en', 'en-u-nu-native', 'en-US', 'en-US-u-nu-native', 'en-US-POSIX', 'en-US-POSIX-u-nu-native', 'root', 'root-u-nu-native'].
I ran into this bug when I switched from using the deprecated cldr-data-full package to cldr-data.
Detail
Below is a test.js program which:

Loads all locale data from the cldr-data package
Runs Globalize(locale).numberFormatter(1234567.891) for different locales

It shows different output, depending on whether the "cldr-data-coverage": "full" is set or not in package.json. The output looks wrong when the flag is used.
Program output with flag used:
package.json
{
  ...
  "cldr-data-coverage": "full",
  "dependencies": {
    "cldr-data": "26.0.11",
    "globalize": "1.0.0"
  },
  ...
}

stdout:
Value: 1234567.891
Locale: en: 1234567.891
Locale: en-u-nu-native: 1234567.891
Locale: en-US: 1234567.891
Locale: en-US-u-nu-native: 1234567.891
Locale: en-US-POSIX: 1234567.891
Locale: en-US-POSIX-u-nu-native: 1234567.891
Locale: root: 1234567.891
Locale: root-u-nu-native: 1234567.891

Program output with no flag:
package.json:
{
  ...
  "dependencies": {
    "cldr-data": "26.0.11",
    "globalize": "1.0.0"
  },
  ...
}

stdout:
Value: 1234567.891
Locale: en: 1,234,567.891
Locale: en-u-nu-native: 1,234,567.891
Locale: en-US: 1,234,567.891
Locale: en-US-u-nu-native: 1,234,567.891
Locale: en-US-POSIX: 1,234,567.891
Locale: en-US-POSIX-u-nu-native: 1,234,567.891
Locale: root: 1,234,567.891
Locale: root-u-nu-native: 1,234,567.891

test.js program:
Globalize = require('globalize');

Cldr = function(cldrFilePath) {
 return require('cldr-data/' + cldrFilePath);
};

var availableLocales = Cldr('availableLocales.json').availableLocales;
Globalize.load(Cldr('supplemental/likelySubtags.json'));
Globalize.load(Cldr('supplemental/numberingSystems.json'));

var i;
var locale;
for (i = 0; i < availableLocales.length; i++) {
    locale = availableLocales[i];
    Globalize.load(Cldr("main/" + locale + "/numbers.json"));
}

var formatNumberInLocale = function(value, locale) {
    return Globalize(locale).numberFormatter()(value);
};

var value = 1234567.891;

console.log('Value: ' + value);
var testLocales = ['en', 'en-u-nu-native', 'en-US', 'en-US-u-nu-native', 'en-US-POSIX', 'en-US-POSIX-u-nu-native', 'root', 'root-u-nu-native'];
for (i = 0; i < testLocales.length; i++) {
    locale = testLocales[i];
    console.log('Locale: ' + locale + ': ' + formatNumberInLocale(value, locale));
}

Hi @greghuc, thanks for your detailed description for this issue.
https://github.com/rxaviers/cldrjs/issues/29 needs to be fixed. The problem is not handling the variant subtag POSIX correctly. As soon as it's fixed, I will update it on Globalize as well. It's intriguing how you made it work for the regular coverage (not the full one). For me, it fails as well.
Note you shouldn't use the root locale. Because, it doesn't make sense. When you request for root, you actually request for und (undefined). For more information, see https://github.com/rxaviers/ecma402-fix-lookup-matcher/issues/2.

Hi @rxaviers, thanks for the reply. I'm glad this is a bug and I'm not going mad!
https://github.com/rxaviers/cldrjs/issues/29 refers to a specific problem with *-POSIX locales. If addressed, will this fix the incorrect formatting for all the locales I reported, including the more common en-* locales?
Regarding regular coverage vs full coverage, I ran test.js again, and got the same results as reported above. You might want to make sure that you really  have the correct version of the cldr-data package when you switch between regular and full using the flag. I went with:
rm -rf ./node_modules && npm cache clean && npm install

Thanks for explaining about root. I wanted to generate formatted numbers for all locales, so I'm looping through availableLocales and running the number formatter. That's what picks root up as a locale, and that's how I could see what locale results had changed (to an incorrect value).

If addressed, will this fix the incorrect formatting for all the locales I reported, including the more common en-* locales?

It will fix them as well. Because, the "mal-handling" of en-US-POSIX makes en, en-US, etc to point to the wrong bundle. Instead of pointing to en, they point to en-US-POSIX:

cldrjs@0.4.4 has been released with a fix for this issu.

@rxaviers thanks for the fix!

:+1: ywc

authors: greghuc rxaviers

repo: jquery/globalize


text:
loadMessages with array merges new message with old one instead of replacing it

Jsfiddle: http://jsfiddle.net/nkovacs/4b8wLmvn/
The string (hello) is replaced, the array is merged instead.

I worked around this by going through the messages object and converting all arrays to strings before passing it to loadMessages.

Hi, thanks for filing this issue. Globalize uses cldrjs under the hood for the loading operation. The problem has a very simple solution: please see https://github.com/rxaviers/cldrjs/issues/32 and feel free to submit a PR or add new comments with questions.
I'm keeping this bug opened until the above cldrjs bug gets fixed and we bump its version in here.

You could work around it in case cldrjs cannot fix it because it's expected behavior in other cases.

I maintain cldrjs and I am open to get that fixed upstream there. :D

authors: nkovacs rxaviers


text:
Add missing include files, copied from other DIGPAK distribution and VBE/AI SDK

PROLOGUE.MAC is a combination of various versions of that file in that other distribution.
VBEAI.INC copied from VBE/AI SDK, confirmed by VESA to now be in the Public Domain.
(The .INC files are probably all safe to include anyway, thanks to today's SCOTUS decision on Google vs. Oracle.)

@jratcliff63367 Thanks for releasing the code under the MIT license! :slightly_smiling_face:
While you're at it, maybe you can consider merging this pull request as well?
These are missing include files from the more complete source code distribution that you once shared with @MobyGamer. I found that these are needed to build these sources, but missing from your repo. VBE/AI stuff is considered public domain by VESA now, so I included that as well.
There's a lot of other stuff in those complete sources that's not in your released code here either, but the license terms of some of the omitted source files aren't clear, so I left those out.
Thanks.