首页 \ 问答 \ 在黑莓中绘制图形(Draw Graph in Blackberry)

在黑莓中绘制图形(Draw Graph in Blackberry)

我想创建一个应用程序,绘制不同的图表,如饼图,折线图,混合图表等。是否有任何API可用。如果是,那么请给我链接。 然而,没有任何替代方案。


i want to create one app which draw different charts like pie chart, line chart, mixed chart etc. Is the any API available to do so.If yes then please give me link. And of no then is there any alternative for that.


原文:https://stackoverflow.com/questions/6236310
更新时间:2023-11-11 15:11

最满意答案

我昨天自己找到了解决方案:

public function handle($request, Closure $next)
    {
        $group = Group::whereSlug($request->group->slug)->first();

        foreach ($group->users as $user)
        {
            if($user->id == Auth::id())
            {
                return $next($request);
            }
        }

    \Flash::error('You are not a user of this group!');
    return redirect('groups');
    }

I found the solution myself yesterday:

public function handle($request, Closure $next)
    {
        $group = Group::whereSlug($request->group->slug)->first();

        foreach ($group->users as $user)
        {
            if($user->id == Auth::id())
            {
                return $next($request);
            }
        }

    \Flash::error('You are not a user of this group!');
    return redirect('groups');
    }

相关问答

更多
  • 搜索0020002101应该2.??.??.??101不喜欢2101到20002101 ? 正则表达式不能“喜欢”任何东西。 它从左到右匹配。 一旦找到2 (前2 ),它就开始匹配后续的子模式,当找到匹配时,返回它。 在您的情况下,您需要使用可选组内的 .{0,2} , (this is.{0,2})?(an.{0,2})?(example sentence) ^^^^^^ ^^^^^^ 请参阅正则表达式演示 。 如果可选字符串的顺序很重要,请将它们嵌套: (this is.{0, ...
  • 我相信user.groups是组的键列表。 我不认为djangotoolbox或djangoappengine当前会生成一个键列表的查询。 您可以尝试更新djangotoolbox来处理这种情况,或者更容易,您可以在模板外为Group.objects.filter(id__in=user.groups)发出查询,然后将其传递给模板。 I believe user.groups is a List of keys to groups. I don't think that djangotoolbox or d ...
  • 您设置索引错误。 每个顶点有1个索引 。 但是,您的代码显示每个顶点3个索引,这是没有意义的。 如果你改变了 cubeGeometry.setIndex(new THREE.BufferAttribute(idx, 3)); 至 cubeGeometry.setIndex(new THREE.BufferAttribute(idx, 1)); 你的问题解决了。 这是工作的jsfiddle You are setting indices wrong. You have 1 index per vertex ...
  • 转到.../wp-admin/admin.php?page=bp-settings 。 是否选择了此选项? Enable group creation for all users 如果是,则尝试切换到2013年的WP主题。如果按钮出现,则问题出现在您的主题中。 编辑:BuddyPress不在成员个人资料页面上提供创建链接。 mydomain.com/members/my-username/groups/ 链接将在此处:mydomain.com/groups/ 您可以添加链接,但添加方式取决于您希望它显示的 ...
  • /user/(?P[^/]+)/(?P[^/]+) http://regex101.com/r/gL1aS2 只是为了解释原始正则表达式的几个问题: [.*]+表示仅出现点的正数和星号,例如: *.*.*或. 或者...... ; [^/]+描述任何字符的正数,但是斜杠。 不需要转义斜杠,因为当你使用~作为分隔符时它们不是特殊字符。 你的正则表达式也在开头需要/ app ,这在你的字符串中没有。 /user/(?P[^/]+)/(?P[^/]+) ...
  • 好的,我做了一些额外的研究。 我发现SO q / a SignalR丢失了消息,如果IIS配置了多个提到相同问题的工作进程 ,即使它与Azure无关,也非常相关。 如果您有多个Signalr中心Azure Web App实例(可以如下所示设置),那么您将遇到我提到的问题。 实质上,对实例A进行的客户端连接将不会看到实例B连接。 如果您确实需要更多Hub的一个实例,则需要在http://www.asp.net/signalr/overview/performance/scaleout-in-signalr中实 ...
  • 我昨天自己找到了解决方案: public function handle($request, Closure $next) { $group = Group::whereSlug($request->group->slug)->first(); foreach ($group->users as $user) { if($user->id == Auth::id()) { ...
  • 很明显,这不是动态群体不起作用的方式。 最后我决定使用静态组。 可以在以下位置找到一个很好的答案:stackoverflow.com/questions/4603570/openldap-dynlist-posixgroup Its clear that this is not how dynamic groups don't work. In the end I decided to use static groups. A good answer can be found at : stackoverf ...
  • 当我从url中提取lang时,我正在重写Slim变量['PATH_INFO']。 这就是为什么它不工作。 所以它现在工作正常但我仍然有兴趣知道是否有更好的方法将multilang添加到一个苗条的应用程序。 有用的资源 http://nesbot.com/2012/6/26/multilingual-site-using-slim https://fiberonofiber.wordpress.com/2014/02/13/slim-php-multi-language-urls/ https://githu ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。