首页 \ 问答 \ 使用哪个版本的Joomla- 1.5或1.7?(Which version of Joomla to use- 1.5 or 1.7?)

使用哪个版本的Joomla- 1.5或1.7?(Which version of Joomla to use- 1.5 or 1.7?)

我必须建立一个基于新闻的网站,但我不确定是否使用joomla 1.5或1.7? 我一直在使用joomla 1.5,并且有很多可用的扩展。 另一方面,joomla 1.7目前可用的扩展较少,我听说joomla 1.5的支持将在明年停止。 那么请你建议我应该选择哪个版本的joomla?为什么?

提前致谢 :)


I have to build a News based website but I am not sure whether to use joomla 1.5 or 1.7? I have been using joomla 1.5 for a while and there are many extensions available for it. On the other hand joomla 1.7 has less extensions available at present and I have heard joomla 1.5 support will be stopped by next year. So would you please kindly suggest me which version of joomla should I go for and why?

Thanks in Advance :)


原文:https://stackoverflow.com/questions/7809635
更新时间:2024-02-08 21:02

最满意答案

获得此功能的一种简单方法是将gps位置存储在全局变量中,并在需要打印某些数据时将wifi嗅探线程读取为全局; 问题是因为两个线程可以同时访问全局变量,所以你需要用互斥量包装它;

last_location = (None, None)
location_mutex = threading.Lock()

def gpsInfo():
    global last_location
    while True:
        session.poll()
        time.sleep(5)
        if gps.PACKET_SET:
            session.stream
            with location_mutex:
                # DON'T Print from inside thread!
                last_location = session.fix.latitude, session.fix.longitude
            time.sleep(0.1)

def WifiDetect(p):
    if p.haslayer(Dot11):
        if p.type == 0 and p.subtype in stamgmtstypes:
            if p.addr2 not in observedclients:
                with location_mutex:
                    print p.addr2, last_location
                    observedclients.append((p.addr2, last_location))  

A simple way of getting this is store the gps location in a global variable, and have the wifi sniffing thread read that global when it needs to print some data; The gotcha is that since two threads can be accessing the global variable at the same time, you'll want to wrap it with a mutex;

last_location = (None, None)
location_mutex = threading.Lock()

def gpsInfo():
    global last_location
    while True:
        session.poll()
        time.sleep(5)
        if gps.PACKET_SET:
            session.stream
            with location_mutex:
                # DON'T Print from inside thread!
                last_location = session.fix.latitude, session.fix.longitude
            time.sleep(0.1)

def WifiDetect(p):
    if p.haslayer(Dot11):
        if p.type == 0 and p.subtype in stamgmtstypes:
            if p.addr2 not in observedclients:
                with location_mutex:
                    print p.addr2, last_location
                    observedclients.append((p.addr2, last_location))  

相关问答

更多
  • 这应该做到: [entry for tag in tags for entry in entries if tag in entry] This should do it: [entry for tag in tags for entry in entries if tag in entry]
  • 很难理解你在问什么,但我想你只想要zip : for i, j in zip([1,2,3], [3,2,1]): print i, j for i, j in zip(f_iterate1(), f_iterate2()): print i, j 等等… 这并不会同时执行任何操作,因为通常使用该术语,它一次只执行一项操作,但有一点是“在锁定步骤中迭代两个序列”。 请注意,这显然可以扩展到三个或更多列表: for i, j, k in zip([1,2,3], [3,2,1], [13, ...
  • 跟踪程序,看看会发生什么。 range(num)这里是range(4) ,它给出值0,1,2和3。 当i = 0时,我们将1024除以2得到512。 当i = 1时,我们将512除以2得到256。 当i = 2时,我们将256除以2得到128。 当i = 3时,我们将128除以2得到64。 瞧! 有你的64。 更一般地,循环的每次迭代将result除以2,因此在循环的num次迭代之后, result将是1024/2 num 。 由于1024 = 2 10 ,这意味着结果是2 10/2 num = 2 10 ...
  • for n in range(2, 6): n表示数字2到n,但不包括6.因此,从n = 2开始,下一行说 for x in range(2, n): n目前是2,所以这意味着没有数字(从2到小于2)。 然后它使用n的下一个值,即3.这将使用range(2,3)即仅数字2.依此类推。 我建议最初只是看看循环做什么,没有任何代码来查找素数。 for n in range(2, 6): print n for x in range(2, n): print x 如果找到n的 ...
  • 获得此功能的一种简单方法是将gps位置存储在全局变量中,并在需要打印某些数据时将wifi嗅探线程读取为全局; 问题是因为两个线程可以同时访问全局变量,所以你需要用互斥量包装它; last_location = (None, None) location_mutex = threading.Lock() def gpsInfo(): global last_location while True: session.poll() time.sleep(5) ...
  • 首先,我将解释您的代码的作用,然后,代码将执行您想要的操作。 day = int(input('How many days did you work?: ')) start = 1 end = day amount = 0.01 # Start and End shouldn't be a thing total = 0 # I think this is what you wanted... the amount will double every time and the total will be i ...
  • 因为在内部循环第一次完成后,您没有将number2设置回1。 number1然后递增,但由于number2仍然太高,内部循环不会再次运行。 def PrintProductsBelowNumber(number): number1 = 1 while number1 <= number: number2 = 1 while number2 <= number: print(number1, "*", number2, "=", numb ...
  • 您可以使用zip将多个列表(或迭代)转换为成对的*元组: >>> for a,b in zip(xrange(10), xrange(10)): ... print a+b ... 0 2 4 6 8 10 12 14 16 18 但是zip不会在更大的集合上扩展以及izip (那个提到的)。 zip的优点是它是一个内置的,你不需要import itertools - 而且这实际上是一个优点是主观的。 *不仅仅是配对,而是正方向。 元组的长度将与传递给zip的迭代次数相同。 You can us ...
  • 这个简单的例子应该让你开始,在这种情况下,有两个while循环和time.sleep(seconds)用于模仿一些工作 import threading import time def func_1(): i = 0 while i<5: i += 1 time.sleep(1.5) # Do some work for 1.5 seconds print 'func_1' def func_2(): i = 0 while ...
  • “input”当时只返回一个值,因此您无法为两个变量分配它。 如果您希望使用两个值,则可能需要按空格或任何其他方便的分隔符拆分字符串。 >>> x,y = map(int, input("Enter x and y separated by comma: ").split(',', 1)) Enter x and y separated by comma: 1, 2 >>> x 1 >>> y 2 split(var,1) - 确保只将字符串拆分为两个部分。 map(int ...) - 将每个字符串片段 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)